Harry,

You have three choices.


[...] snipped techniques

So back to my original question:
Is there a module or something that takes care of that pre
processing for me?



I think you misunderstood. The problem with your script is not the spaces in the string. It's that you used a single backslash in double-quoted string. Whether you do that when trying to specify a filename or not doesn't matter. A single backslash in a double-quoted string is always interpreted as the beginning of an escape sequence.


For example, \n is newline. But \d and \m don't exist (as escape sequences), which is why perl is complaining. (notice you have C:\download\my... in your string)

So, as Charles K. Clarkson said, if you want to keep a double-quoted string, double your backslashes. (that tells Perl 'This is really meant to be a backslash and not the beginning of an escape sequence.') Or, use slashes instead of backslashes. That works great. Or you can also use a single-quoted string instead of double-quotes, which means Perl won't try to interpolate anything in the string.

Once you do that, it will work fine.

J-S

--
___________________________________________
Jean-SÃbastien Guay   [EMAIL PROTECTED]
            http://whitestar02.webhop.org/



--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 266.2.0 - Release Date: 2005/02/21


-- 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