ashok has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have used like this to count no. of lines in a file on unix.
$nl = `cat $filename | wc -l`
It works fine. But one of the files having a blank in it's path like this.
j:/org/temp/Program Files/source/myfirst.cpp
Cat fails in this case because there is a blank between Program and Files in the directory name. How to solve this without changing the directory.? I have lready an array stored with file names along with its' path.

When I have unzipped a .zip file it had created all the directories itself and stored the files like that.

Thanks
Ashok

Originally posted as a Categorized Question.