headybrew has asked for the wisdom of the Perl Monks concerning the following question:
I don't see "FOO" in the output? Shouldn't 'my' put it in the main:: symbol table?my $FOO; print join("\n",sort(keys(%main::)) );
do this:my $main::FOO; print join("\n",sort(keys(%main::)) );
it works?local $FOO; print join("\n",sort(keys(%main::)) );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Ask a Silly Question...
by Util (Priest) on Feb 01, 2008 at 03:05 UTC | |
|
Re: Ask a Silly Question...
by Fletch (Bishop) on Feb 01, 2008 at 02:35 UTC | |
|
Re: Ask a Silly Question...
by ikegami (Patriarch) on Feb 01, 2008 at 04:05 UTC | |
|
Re: Ask a Silly Question...
by roboticus (Chancellor) on Feb 01, 2008 at 14:26 UTC |