Syntactic Confectionery Delight | |
PerlMonks |
Re^3: small steps toward Perl literacy, temp vars and parenthesesby Jenda (Abbot) |
on Jun 16, 2004 at 22:18 UTC ( [id://367458]=note: print w/replies, xml ) | Need Help?? |
If we wanted a statement that could be read from right to left completely we could use "Take the keys of %h, sort them numericaly, take the first one and set the %h hash to the key and its value." But I think this one is even more confusing. Maybe this would be better, the comma giving a hint that we do expect the sort to return several values, but we use just the first one. Anyway in this case I would use some temp variable. Even though I did work with some functional languages and liked it :-) Jenda Edit by castaway: Closed small tag in signature
In Section
Meditations
|
|