On 11-05-08 09:29 AM, [email protected] wrote:
opendir(DIR, "$path") || die "folder not found" $!;
If you are checking if the folder exists, use the -d file test:
if( -d $path ){
print "The folder $path exists\n";
}else{
print "Sorry, not path to $path\n";
}
See `perldoc perlfunc` and search for /-X/.
--
Just my 0.00000002 million dollars worth,
Shawn
Confusion is the first step of understanding.
Programming is as much about organization and communication
as it is about coding.
The secret to great software: Fail early & often.
Eliminate software piracy: use only FLOSS.
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/