From what I understand about packages, namespaces and scope, you're missing two things:
Trying the same with my will result in a warning when you try to print an uninitialized variable.% perl -wle'package foo; our $bar = "10"; package main; print $foo::ba +r' 10
Hope this helps.
In reply to Re: [ooperl] calling reference to a annonymous sub
by Fang
in thread [ooperl] calling reference to a annonymous sub
by arunvelusamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |