in reply to Mysterious for behavior
Hi, what you really wrote is this:
$_ is a alias to $i and $i is 1.
my $i; for ( ($i=3, $i=2, $i=1) ) { print("$_ and $i\n"); }
Boris
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Mysterious for behavior
by Roy Johnson (Monsignor) on Apr 21, 2004 at 19:32 UTC | |
by borisz (Canon) on Apr 21, 2004 at 19:46 UTC | |
by Belgarion (Chaplain) on Apr 21, 2004 at 20:00 UTC | |
by ysth (Canon) on Apr 21, 2004 at 22:18 UTC | |
by Roy Johnson (Monsignor) on Apr 21, 2004 at 22:25 UTC |
In Section
Seekers of Perl Wisdom