http://www.perlmonks.org?node_id=145386


in reply to Re: splitting on win32 linefeeds aka pass the crackpipe!
in thread splitting on win32 linefeeds aka pass the crackpipe!

chipmunk++ for pointing out File::Basename.

mr.dunstan, you'd probably be better off with this:
my ($actualFileName, $filePath) = fileparse ($filename);