logie17 has asked for the wisdom of the Perl Monks concerning the following question:
Could someone please give a good example as to why one would use to use our $varname vs. my $varname. According to the Perldoc:
Could someone explain this to me and supply a good working example?
Thanks in advance,
"our" has the same scoping rules as "my", but does not necessarily cre +ate a variable.
Could someone explain this to me and supply a good working example?
Thanks in advance,
s;;5776?12321=10609$d=9409:12100$xx;;s;(\d*);push @_,$1;eg;map{print chr(sqrt($_))."\n"} @_;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Mine or Ours
by BrowserUk (Patriarch) on Jan 20, 2007 at 18:43 UTC | |
Re: Mine or Ours
by jdporter (Paladin) on Jan 20, 2007 at 19:07 UTC | |
Re: Mine or Ours
by shmem (Chancellor) on Jan 21, 2007 at 00:03 UTC | |
by gaal (Parson) on Jan 21, 2007 at 06:53 UTC | |
by shmem (Chancellor) on Jan 21, 2007 at 09:24 UTC | |
by gaal (Parson) on Jan 21, 2007 at 09:44 UTC | |
by shmem (Chancellor) on Jan 21, 2007 at 10:08 UTC | |
by Herkum (Parson) on Jan 21, 2007 at 03:10 UTC |
Back to
Seekers of Perl Wisdom