Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Perlito5 - typeglob vs. import behaviour investigation
  • Loading branch information
fglock committed Oct 14, 2014
1 parent ef7a08d commit 89bf744
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions misc/typeglob/import.pl
Expand Up @@ -16,7 +16,7 @@ package Y;
# BEGIN { my $x; *X::v = \$x; }

# my $x; *X::v = \$x;
sub imp { my $x; *X::v = \$x; }
# sub imp { my $x; *X::v = \$x; }

package X;
use strict;
Expand All @@ -26,8 +26,12 @@ package X;
# BEGIN { require "import.pm"; import::import( "import" ); }
# BEGIN { require "import.pm"; import::export( "import" ); }
# BEGIN { my $x; *X::v = \$x; }
# sub imp { my $x; *X::v = \$x; }

BEGIN { Y::imp() }
BEGIN {
package Y;
my $x; *X::v = \$x;
}

# Y::imp();

Expand Down

0 comments on commit 89bf744

Please sign in to comment.