in reply to FileParse Issue

File::Spec handles a LOOOOOOT of this stuff for you...
use strict; use warnings; use File::Spec; my $item = 'L:\My-Folder\foo.txt'; my($vol, $path, $file) = File::Spec->splitpath($item); print "Vol = $vol, path = $path, file = $file";
Teamed with File::Find, it becomes exceptionally useful.