Elegant has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately, this fails every single time $item contains a dash (-), IE: "L:\My-Folder". It promptly ends giving a parser error saying the document is empty.my($parent, $dir, $suffix) = fileparse($item, qr/\.[mM][kK][vV]/);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fileparse() Issue (File::Basename)
by Athanasius (Archbishop) on Sep 18, 2014 at 06:26 UTC | |
|
Re: FileParse Issue
by Corion (Patriarch) on Sep 18, 2014 at 06:48 UTC | |
|
Re: FileParse Issue
by jellisii2 (Hermit) on Sep 18, 2014 at 13:42 UTC |