in reply to Re: Directory Parsing
in thread Directory Parsing

If $DataSet should always be the 2nd directory, you can try something like
@array_split = split("/\//", $dir); $DataSet = $array_split[1];