uses grep to filter out the empty strings returned by path_segments.print $uri->path_segments( grep { $_ } $uri->path_segments, $file );
updated: fixed typo
In reply to Re^3: URI plus File::Spec::Unix -- good idea or bad?
by mreece
in thread URI plus File::Spec::Unix -- good idea or bad?
by mreece
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |