in reply to Fun With Spaceship
Returns: four,three I always wondered what assigning to $x[-1] would do in Perl.my (@stuff) = qw [ one two three four five ]; print join (',', $stuff[-2], $stuff[2]);
my (@ans) = qw [ false true ]; print $ans[ !!(assertion) ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Fun With Spaceship
by jorg (Friar) on Mar 29, 2001 at 19:40 UTC | |
by tye (Sage) on Mar 29, 2001 at 23:27 UTC |