in reply to Get the filename from the end of a URL
#!/usr/bin/perl -w use strict; my $url = "http://www.oreilly.com/catalog/lperl3/index.html"; my ($page) = $url =~ /.*\/([^\/]*)/; print $page; [download]