no you can't, local doesn't declare!
lanx@nc10-ubuntu:~$ perl -e 'use strict; local $x=4; print $x' Global symbol "$x" requires explicit package name at -e line 1. Global symbol "$x" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors. lanx@nc10-ubuntu:~$ perl -e 'use strict; our $x=4; print $x' 4lanx@nc10-ubuntu:~$
Cheers Rolf
In reply to Re^5: Unable to declare local variable with "use strict".
by LanX
in thread Unable to declare local variable with "use strict".
by mr_p
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |