in reply to catching errors from file::find

Please consider not using backslashes as path separators. Perl doesn't care if you're in Windows or Unix: You can use / as a path separator.

"c:/config.sys" is the same as "c:\\config.sys" and 'c:\config.sys', but not prone to the quoting goofs.

xoxo,
Andy
--
<megaphone> Throw down the gun and tiara and come out of the float! </megaphone>

Replies are listed 'Best First'.
Re: Pathing under Windows
by gloryhack (Deacon) on Nov 10, 2001 at 12:12 UTC

    As long as we're wandering down this path... it's also good to get into the habit of using single quotes unless variable interpolation is required. Lots of sneaky little bugs hide inside double quotes.

    (In my message previous, I went with the bugslash because the point I was making was how to solve the original problem, rather than correcting style.)

Re: Pathing under Windows
by earthboundmisfit (Chaplain) on Nov 14, 2001 at 19:35 UTC
    While this is certainly true in the latest version of ActivePerl for Windows, there was a time when the double backslash was the only safe way to proceed.... I can't remember what version it was that life became easier for us windozers, and I no longer have an older install to test it. Anyone with better memory than me want to chime in here?