in reply to Re: Will "$_[0]=shift" always resolve shift first?
in thread Will "$_[0]=shift" always resolve shift first?
So what would you expect the following to print?
use strict; my @array = (0, 0, 0); my $x = 0; $array[++$x] = $x++; print "@array\n"; $x = 0; $array[++$x] = $x; print "@array\n"; $x = 0; $array[++$x] = ++$x; print "@array\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Will "$_[0]=shift" always resolve shift first?
by ikegami (Patriarch) on Sep 09, 2008 at 00:16 UTC | |
by GrandFather (Saint) on Sep 09, 2008 at 01:14 UTC | |
by ikegami (Patriarch) on Sep 09, 2008 at 01:57 UTC | |
by GrandFather (Saint) on Sep 09, 2008 at 03:16 UTC |