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|^(?:(.*)/)?|;
In reply to Re: Data Extraction Question
by Gilimanjaro
in thread Data Extraction Question
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |