Ville Jungman wrote: Shortly, I think it might be good if loops (etc.) could return values.
Yes, You're right John! A very good example! Which one would be more readable?
This:
@bigger_than_4= foreach $value(@values) { retnext $value."a" if $value > 4; } ;
...or this:
@bigger_than_4 = grep { ( $_ = "${_}a" ) > 4 } @values;
ville jungman, 2 laureston crescent, tower, blarney, cork, ireland tel. + 353 - 21 - 451 6847, http://www.kolumbus.fi/vilmak usko Herraan Jeesukseen, niin sinä pelastut. (apt. 16:31)
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]