in reply to stat on file name containing single quotes

I don't think the string contains what you think it does.
#!/usr/bin/perl use strict; use warnings; my $fn = q{C:\Music\Ray LaMontagne\2010 - God Willin' & The Creek Don' +t Rise}; print -d $fn;
works for me. I'm betting you didn't escape your backslashes in your double quotes. Do you have warnings enabled?

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: stat on file name containing single quotes
by fishmonger (Chaplain) on Jul 30, 2015 at 21:52 UTC

    You're right. My dumb text editor added the .txt ext and dumb me didn't notice it.

    c:\test>Perl-1.pl C:\Music\Ray LaMontagne\2010 - God Willin' & The Creek Don't Rise.txt $VAR1 = [ 2, 0, 33206, 1, 0, 0, 2, 0, 1438291895, 1438291895, 1438291895, '', '' ];