in reply to rename and create directories

my ($folder, $file) = $path =~ /(.*\\)(.*)$/;

Replies are listed 'Best First'.
Re^2: rename and create directories
by dimar (Curate) on Dec 01, 2004 at 03:05 UTC

    ... but note that this method does not work if your path is specified using forward-slash ("/") as the pathstep delimiter.