Web::Simple::Role
[catagits/Web-Simple.git] / lib / XML / Tags.pm
index 8b30b60..a9e0785 100644 (file)
@@ -17,6 +17,7 @@ sub import {
   my $target = $class->_find_target(0, $opts);
   my @tags = $class->_find_tags(@args);
   my $unex = $class->_export_tags_into($target => @tags);
+  if ($INC{"bareword/filehandles.pm"}) { bareword::filehandles->import }
   $class->_install_unexporter($unex);
   $IN_SCOPE = 1;
 }
@@ -80,7 +81,7 @@ sub _export_tags_into {
 
 sub _install_unexporter {
   my ($class, $unex) = @_;
-  $^H |= 0x120000; # localize %^H
+  $^H |= 0x20000; # localize %^H
   $^H{'XML::Tags::Unex'} = bless($unex, 'XML::Tags::Unex');
 }