in reply to Re: Re: Re: No other way?
in thread No other way?
s#^/##; # remove the leading delimiter
The code as written silently munches all null fields which is fine because we don't expect a directory called null (ie in /foo/bar//rab/oof) but if the idiom is transported to another set of data...
split /' '/ nicely removes any leading white space... it could be handy to have an option to do this for other delimiters.--
my $chainsaw = 'Perl';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Re: No other way?
by chip (Curate) on Dec 14, 2001 at 01:40 UTC |