Code written with the primary purpose of demonstrating the programmer's cleverness must put all other requirements as secondary.
--London's Law -----Original message----- From: Chris Devers <[email protected]> To: Uri Guttman <[email protected]> Cc: [email protected] Sent: Tue, May 31, 2011 21:03:06 GMT+00:00 Subject: Re: [Boston.pm] underused perl feature On Tue, May 31, 2011 at 4:44 PM, Uri Guttman <[email protected]> wrote: > assign => sub { my $x = 'abc' ; $x = "qwerty/$x" }, > substr => sub { my $x = 'abc' ; substr( $x, 0, 0, 'qwerty/') }, The substr version doesn't look very readable or maintainable. You're teaching *beginners* to do things this way? Really? Again?? :-) -- Chris Devers _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

