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

Re: [FWP] Copying hashes



>>>>> "RL" == Rosler, Larry <lr@exch.hpl.hp.com> writes:

  >> 
  >> @{$self}{keys %$r} = @{$self}{values %$r} ;

  RL> You got carried away by what you were correcting.  You don't want
  RL> to assign to @$self the elements of @$self whose keys are the
  RL> values of @$r.  The correct right-hand side has been posted
  RL> several times already:

  RL>     values %$r

OUCH!!!!

my brain was focused trying to order the bbq before the stupor bowl. but
no excuses are good enough for that braino.

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