On my windows 7 system I have a directory named:
E:\Music\Ray LaMontagne\2010 - God Willin' & The Creek Don't RiseIn my program the variable $fn contains the above string. When I do a stat on that variable I get an undefined return value. The same with -d or -f as in:
@s=stat $fn;or
if (-d $fn) {print "Directory"}Is there any way to get the stat to work?
I am running activestate perl 5.16.2 with a "use 5.12.0".
In reply to stat on file name containing single quotes by perlpipe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |