From:                   Dave Rankin <[EMAIL PROTECTED]>

> You can use the -d operator to test for a directory.  
> 
> print "Found directory!\n" if (-d "/path/to/directory");
> 
> (Just make sure you use the c:\\path\\to\\directory format on Windows.)

Perl doesn't care whether you use forward or backward slashes on 
Windows, even most system call accept forward slashes (if you 
played with Win32::API or FFI or XS). Only the shell has problems 
with forward slashes.

So unless you use system(), backticks, Win32::Process::Create, 
open(PIPE, '|somecommand path\to\file') or something similar the 
type of slashes doesn't matter.

Jenda

=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to