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

Re: [FWP] Copying hashes



Andy Lester asked:

> > >    my $r = $sth->fetchrow_hashref() or return 0;

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

> Yah, I found that after I sent the message, but my question is still: Is
> there any other metaphor that makes more sense?

Isn't
	%$self = %$r;

enough fun4U?

Martin.

-- 
___________________________________________________________________
Martin H. Sluka  \ tel: +49-700-19751024 / "Urmel aus dem IRC(net)"
Pirckheimerstr. 1 >---------------------/ <mailto:martin@sluka.de>
D-91207 Lauf     / fax: +49-9123-13875 /  <http://martin.sluka.de/>

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