XP is just a number | |
PerlMonks |
Re: chomp any data structure recursivelyby merlyn (Sage) |
on Dec 21, 2001 at 01:13 UTC ( [id://133615]=note: print w/replies, xml ) | Need Help?? |
Yours is bugged. It looks at the outer $_ in all those ref calls. Just happens to work.
Here's a non-recursive version:
-- Randal L. Schwartz, Perl hacker update: I didn't claim it was a working version. Thanks for the updates in the thread. {grin} Also, I didn't see the unusual multi-line backwards-for in the original code, so it appears to be less buggy than I thought. {sigh}
In Section
Cool Uses for Perl
|
|