in reply to How to reverse a string *revisited*
my $foo = (1,1,1,1,1); my $bar = () = (1,1,1,1,1); print "foo = $foo, bar = $bar\n"; __END__ foo = 1, bar = 5
Liz
Update:
Please check out Abigail-II's and AM's corrections to my poor understanding/wording of this feature of Perl and how it is used in some nice Perl idioms.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to reverse a string *revisited*
by Abigail-II (Bishop) on Nov 11, 2003 at 10:09 UTC | |
|
Re: Re: How to reverse a string *revisited*
by Anonymous Monk on Nov 11, 2003 at 10:08 UTC | |
by ihb (Deacon) on Nov 14, 2003 at 23:51 UTC |