"be consistent" | |
PerlMonks |
Re: Re: Our, use vars, and magic, oh my!by Hofmator (Curate) |
on Aug 23, 2001 at 19:47 UTC ( [id://107375]=note: print w/replies, xml ) | Need Help?? |
our variables can be seen in subroutines and my variables declared at the top of your script cannot be seen inside your subroutines.This is only true if you put your subroutines above the top of the script, i.e. above the my declarations. Some code - where $var can be accessed in the subroutine:
-- Hofmator
In Section
Seekers of Perl Wisdom
|
|