in reply to Re: chomp any data structure recursively
in thread chomp any data structure recursively
I'd be quite surprised my code works with many different structures if it's bugged.sub mychomp { for (@_){ $_ is iterable && mychomp it || $_ is a scalar ref && try to chomp its scalar || $_ is not any other reference && chomp it } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: chomp any data structure recursively
by merlyn (Sage) on Dec 21, 2001 at 01:45 UTC | |
by Juerd (Abbot) on Dec 21, 2001 at 01:48 UTC | |
by merlyn (Sage) on Dec 21, 2001 at 01:55 UTC |