appleii has asked for the wisdom of the Perl Monks concerning the following question:
#!/bin/env perl use strict; use warnings; my $n = $_ foreach (1 .. 2); warn "\$n = $n"; my $m = 1 if (1); warn "\$m = $m";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why the variable $n was undef?
by ikegami (Patriarch) on Aug 16, 2010 at 13:31 UTC | |
|
Re: Why the variable $n was undef?
by Corion (Patriarch) on Aug 16, 2010 at 12:58 UTC | |
by JavaFan (Canon) on Aug 16, 2010 at 13:29 UTC | |
by appleii (Novice) on Aug 16, 2010 at 13:08 UTC | |
by BioLion (Curate) on Aug 16, 2010 at 13:12 UTC |