[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Add to elements of a list



At 02:02 PM 4/8/00 -0600, Nathan Torkington wrote:
>Peter Scott writes:
> > but I just have this thing against creating new variables, however
> > temporary.
>
>Cope.  The code you came up with is nasty and slow.  I'd fire you if
>it turned up in code for my company :-)

Hey, this is the *Fun* with Perl list.  I did say I wasn't putting it in my 
code...

>Not that this is much better :-)
>
>   &{sub { while(@_) { ${+shift} += pop } }}(\$z, \$y, \$x, foo())

There, that's the spirit :-)  Golf, anyone?


--
Peter Scott
Pacific Systems Design Technologies


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe