But remember that these are dynamically-scoped.sub bar { print "global bar(@_)\n"; } sub foo { local *bar = sub { print "bar(@_)\n"; }; bar(1..3); } foo; bar;
In reply to Re: Local Subroutines
by educated_foo
in thread Local Subroutines
by sweetblood
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |