You are bitten by the magic of $a and $b:
#!/usr/bin/perl -l use strict; { local our $x = "A" } { our $y = "B" } print "x=$x"; print "y=$y"; __END__ Variable "$x" is not imported at our2.pl line 7. Variable "$y" is not imported at our2.pl line 8. Global symbol "$x" requires explicit package name at our2.pl line 7. Global symbol "$y" requires explicit package name at our2.pl line 8. Execution of our2.pl aborted due to compilation errors.
In reply to Re^6: Multiple uses of (?{ code }) do not appear to be called
by rhesa
in thread Multiple uses of (?{ code }) do not appear to be called
by bsdz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |