in reply to Regular expression parse pathname

You should `use File::Spec;` when dealing with paths. File::Spec is a standard module and should have been installed with Perl. For a complete list of all the standard modules and pragmatics, see `perldoc perlmodlib`.