If you need global access to something, use a global variable. It's cleaner, clearer and safer.In fact, if anything, the OP could probably benefit more from Dominus's excellent and now freely available book Higher Order Perl. A lot of the concepts in there like dispatch tables, etc. are more likely to lead to a better program than a crash course on OO will.
Elda Taluta; Sarks Sark; Ark Arks
In reply to Re^2: Are global variables "bad"?
by Argel
in thread Are global variables "bad"?
by jpearl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |