Assuming you want to extract the filename from the pathname, I've been known to use something along the lines of this:
but if anyone has a better solution then I'd be interested to hear it.my ($filename) = ($pathname =~ m|[/\\:]([^/\\:]+)$|);
andy.
In reply to CGI Re: Paths in Perl
by andye
in thread Paths in Perl
by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |