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';
In reply to Re: Re: Re: Re: No other way?
by greenFox
in thread No other way?
by c0d34w4y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |