more useful options | |
PerlMonks |
Re: Search and substitute into data structuresby Sidhekin (Priest) |
on Apr 30, 2007 at 19:05 UTC ( [id://612840]=note: print w/replies, xml ) | Need Help?? |
Substitution is conceptually a destructive operation, particularly on structures, and that is how you use it, so I would rewrite your unwrap_cdata as explicitly so:
If you ever really want to make copies, pass the copies to unwrap_cdata instead, and make sure you make deep copies (like with Storable::dclone). And now for my trick:
Recursion is fun. Block eval is great fun. :-)
print "Just another Perl ${\(trickster and hacker)},"
In Section
Seekers of Perl Wisdom
|
|