Have a look at ref in the documentation. It has a couple of examples of what you are looking for.
Secondly How can a make a global variable truely global, so that it will be accessible by all packages without using package::variable.
You don't. Well sortof, Can you create *real* global variables?
hth
-enlil
In reply to Re: 2 questions about anonymous storage and global variables
by Enlil
in thread 2 questions about anonymous storage and global variables
by cosmicperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |