> Hi All,
> Just trying to work out the code to test if a path is a 
> directory or file. Looked over the stat function but doesn't 
> quite seem right. Can someone give me a clue
> 
Sure thing:

 if(-d $path) { print "$path is adirectory"; }
 perldoc -f -d to find out more about file tests

HTH
Dmuey

> thanks
> 
> Rus
> 
> -- 
> www: http://jvds.com   | Virtual Servers from just $15/mo
> MSNM: [EMAIL PROTECTED] | Totally Customizable Technology
> e: [EMAIL PROTECTED]       | FreeBSD & Linux
>        10% donation to FreeBSD.org on each purchase
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to