Perl-Sensitive Sunglasses | |
PerlMonks |
Re^2: Build tree data structure from DB (flat) data; function golfby gryphon (Abbot) |
on Aug 30, 2006 at 19:59 UTC ( [id://570464]=note: print w/replies, xml ) | Need Help?? |
Greetings stvn,
This is awesome. Thanks! I need to reprogram my brain so I'll think to use closures more readily. Maybe I need to re-read HOP. You make a great point about this being a destructive function. I think it's easy to fix, though:
...becomes...
UPDATE: I'm a crazy idiot. This doesn't do what I claim it should do. Bad programmer. No cookie. All I'm doing is moving the reference. I need to deep copy instead. gryphon
In Section
Seekers of Perl Wisdom
|
|