XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
foreach my $obj (%{$href})
# This dereference ^ causes a deep copy to be made actually, this is more accurate: If you check the ref()-iness of $obj, you'll find that there isn't any at all. The appropriate value is copied into $obj on each run of the loop. I'm not at all sure what it is you're trying to solve with this, but if you need access to the key/value pair without the big, horrendous copy, maybe something like this: Hope you find this useful! ~Cybercosis nemo accipere quod non merere In reply to Re: Re: Perl Optimization
by Cybercosis
|
|