my ($file) = $url =~ m~[^/]*$~; You didn't test this did you? You need to capture: my ($file) = $url =~ m~([^/]*)$~; tachyon
In reply to Re: Re: Get the filename from the end of a URL
by tachyon
in thread Get the filename from the end of a URL
by ip9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |