Hello Edward,
At 05:07 PM 9/5/2003 +0800, Edward Yang wrote:
>The problem is I do not get correct result from the following code:
>print <c:\program files\*.*>;
>or
>print <c:\\program files\\*.*>;
I don't use perl in Windows, but I can simulate a similar result on Linux
or Mac OS X:
mkdir "foo bar"
cd "foo bar"
touch a b c
cd ..
perl -le 'print join("\n", <foo bar/*>);
I can get things to work by adding in two back slashes befor the space in
the name:
perl -le 'print join("\n", <foo\\ bar/*>);
Perhaps this will work with Windows as well.
Regards,
- Robert
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]