in reply to Re: Fun With Spaceship
in thread Fun With Spaceship
$ perl -e 'my @arr=(1,2,3); $arr[-1]=4; print join " ", @arr, "\n";' 1 2 4 $
$ perl -e 'my @arr; $arr[-1]=4; print join " ", @arr, "\n";' Modification of non-creatable array value attempted, subscript -1 at - +e line 1. $
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Fun With Spaceship
by tye (Sage) on Mar 29, 2001 at 23:27 UTC |