in reply to Doesn't like a Scalar, as a folder path

Why to you escape the colon in the path?
it leads to a strange behaviour i cant explain:
perl -e "print qq(c\:\\other)" c:\other perl -e "print qq(c:\\other)" c:\other #Consider in Perl on win you can use the backslash too in path # perl -e "$path = qq(c:/windows); print qq(Exists and is a directory!\n +) if -e -d $path" Exists and is a directory!

HtH
L*
UPDATE: as explained by Corion this is due to:
Because \: interpolates to : in double quotes
Basically, the leading backslash includes the next character as is (unless it's a special combination, like \n, \r , \a, \b , ...

L*
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.

Replies are listed 'Best First'.
Re^2: Doesn't like a Scalar, as a folder path
by ikegami (Patriarch) on Oct 28, 2014 at 13:21 UTC

    Basically, the leading backslash includes the next character as is (unless it's a special combination, like \n, \r , \a, \b , ...

    The leading backslash includes the next character as is if it's a non-word character.