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

Re: [FWP] Add to elements of a list



>>>>> "PS" == Peter Scott <Peter@PSDT.com> writes:

  PS> The most 'obvious' way was something like

  PS> 	{
  PS> 	  my @a = foo();
  PS> 	  for ($x, $y, $z) { $_ += shift @a }
  PS> 	}

that was my thought, but a map or for modifier could shorten it.

  PS> but I just have this thing against creating new variables, however
  PS> temporary.

live with it. :-)

uri

-- 
Uri Guttman  ---------  uri@sysarch.com  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

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