in reply to Data Extraction Question
This will slurp as much as it can, as long as it's followed by a slash. $directory will be undefined if there isn't one in there... Ormy ($directory) = $fullpath =~ m|^(.*/)?|;
if you don't like the trailing slash on the path...my ($directory) = $fullpath =~ m|^(?:(.*)/)?|;
|
|---|