There's more than one way to do things | |
PerlMonks |
Re: my() and our()by Joost (Canon) |
on Aug 09, 2005 at 15:19 UTC ( [id://482241]=note: print w/replies, xml ) | Need Help?? |
The declaration doesn't clobber anything, the assignment does. our just makes a global accessible and doesn't create a new or temporary variable. Using our $var just lets you access the global $var while strict 'vars' is in effect (like use vars qw($var), only lexically scoped).
In Section
Seekers of Perl Wisdom
|
|