From: Eric Wilhelm <[EMAIL PROTECTED]> > Hi all, > > A reason to use lambda! Actually, the reason I though of lambda in the > first place.
Great. And now for some reason to use List::oo. I mean ... WHY would anyone want to write print L(qw(a b c))->map(sub {"|$_|"})->join(' '), "\n"; instead of print join( ' ', map {"|$_|"} qw(a b c)), "\n"; or print join( ' ', map "|$_|", qw(a b c)), "\n"; (or in this particular case print "|", join( '| |', qw(a b c)), "|\n"; ) ? You do not write $x->sin()->sqrt() if you want the square root of the sinus of $x. (Unless the language was designed by an OO purist of course.) Jenda ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery