in reply to Get the filename from the end of a URL
Update: This does break if the url is something like http://www.plenty.org/downloads/crap.exe?foo=/path/to/something. But so do the others example, I believe.use File::Basename; print basename 'http://www.plenty.org/downloads/crap.exe';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Get the filename from the end of a URL
by petdance (Parson) on May 24, 2001 at 17:39 UTC |