Just to clarify: the double-quotes should go around the argument on the
command-line, not the variable in Perl.



-----Original Message-----
From: Timothy Johnson 
Sent: Thursday, July 13, 2006 11:47 AM
To: Nishi Bhonsle; beginners perl
Subject: RE: How to ignore spaces in directory names?

Put double-quotes around the directory name and you won't have a
problem.




-----Original Message-----
From: Nishi Bhonsle [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 13, 2006 11:44 AM
To: beginners perl
Subject: How to ignore spaces in directory names?

<snip>
How can I modify the line below so it would ignore the spaces in the
directory name and still process it ?

opendir DIR, $path or die "Can't open $path: $!";

P.S In the above line, $path is the directory path passed to the program
As a command line argument.



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to