Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Without the BEGIN your code looks somewhat like:
from which you can see the initialization of $data doesn't happen until after the call to text. Nothing to do with our versus my. Put the package at the top of the file and educate your users, or stick with the BEGIN. In either case "my" would be better than "our" in the context shown.
Premature optimization is the root of all job security
In reply to Re:Behavior of 'our' variables in the package-namespace
by GrandFather
|
|