Help for this page
$HomePath = $ENV{"WORKHOME"}; $Model = shift; $Model =~ m/\Q$HomePath\E\\(.*)\\[.\w]+/i; $WorkingDirectory = $1;
m/ \Q # Match exact string till \E ... \\ # Backslash [.\w]+ # A filename (letters and period) /i # Case insensitive