in reply to Re: hash slice ? No thanks, I'm about to return...
in thread hash slice ? No thanks, I'm about to return...
… a list assignment in list context produces the list of lvalues assigned to, …
Isnt the list assigned to the hash(or list of key/value pairs) %return ?
Isnt the list assigned to on the left hand side of the '=' ?
In the second code samples case that would be (a,1,b,2,c,3,d,4), yes?
The list assigned _from_ is what I'm seeing returned..
Apart from that the list-fu is a neat trick, but perhaps the explicit return is more appropriate, as discussed later in this thread, or a better understanding of when to use return...
...it is better to be approximately right than precisely wrong. - Warren Buffet
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: hash slice ? No thanks, I'm about to return...
by Aristotle (Chancellor) on Feb 20, 2005 at 17:45 UTC | |
by leriksen (Curate) on Feb 20, 2005 at 23:18 UTC | |
by Tanktalus (Canon) on Feb 21, 2005 at 02:59 UTC | |
by Aristotle (Chancellor) on Feb 21, 2005 at 04:39 UTC | |
by leriksen (Curate) on Feb 21, 2005 at 10:58 UTC | |
by Aristotle (Chancellor) on Feb 21, 2005 at 11:25 UTC |