in reply to Re: Re: chomp any data structure recursively
in thread chomp any data structure recursively
That's ref of $_, which you have not yet set up, so it's the outer $_ from the caller. Luckily, you didn't test your subroutine with something that needed ref-ARRAY treatment as an argument. {grin}.sub mychomp { ref eq 'ARRAY' ...
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: chomp any data structure recursively
by Juerd (Abbot) on Dec 21, 2001 at 01:48 UTC | |
by merlyn (Sage) on Dec 21, 2001 at 01:55 UTC |