[EMAIL PROTECTED] wrote:
> Is there a way to test if a specific file exists or not in PERL
> coding? 
        if ( ! -e $myfile ) {
                # does not exist
       }else {
                # does exist
       }
        Make sure you either have done a chdir to the spot or have the whole 
filename.  There are a whole set of switches to use on files(ie, does it exist 
and zero length, is this file odler than 1 day, etc).

Wags ;)
> 
> 
> Regards,
> 
> Sam
> 
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs



*******************************************************
This message contains information that is confidential
and proprietary to FedEx Freight or its affiliates.
It is intended only for the recipient named and for
the express purpose(s) described therein.
Any other use is prohibited.
*******************************************************


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to