]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - lib/indirect.pm
Don't hardcode the package name as the hints key
[perl/modules/indirect.git] / lib / indirect.pm
index 5686fbceca6cb6d03f91853e6cc2ccc7def55c2c..51b69d15205bbd2f72a545a2b7c9fe8c12555bd1 100644 (file)
@@ -57,13 +57,13 @@ BEGIN {
 }
 
 sub import {
- $^H{indirect} = undef;
+ $^H{+(__PACKAGE__)} = undef;
 }
 
 sub unimport {
  (undef, my $type) = @_;
  $^H |= 0x00020000;
- $^H{indirect} = (defined $type and $type eq ':fatal') ? 2 : 1;
+ $^H{+(__PACKAGE__)} = (defined $type and $type eq ':fatal') ? 2 : 1;
 }
 
 =head1 CAVEATS