in reply to Removing filename from directory paths (was: URL Help)

use File::Basename; my $dirstr = "/directory/directory/some-file.html"; $dirstr = dirname($dirstr);

Note that the trailing slash will be cut off.

buckaduck