Use the
-efile test operator:
if(-e $file){
print"File exists\n";
}
## And to test if its a directory...
if(-d $file){
print"Its also a directory!\n";
}
TStanley
--------
There's an infinite number of monkeys outside who want to talk to us
about this script for Hamlet they've worked out
-- Douglas Adams/Hitchhiker's Guide to the Galaxy