> -----Original Message-----
> From: Daniel Falkenberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 11, 2001 12:37 AM
> To: [EMAIL PROTECTED]
> Subject: RE: File creation...
> 
> 
> Dan,
> 
> Just figured it out...
> 
> my $backup = #Dir in hash somewhere.  Not important....
> 
> -T $backup || open(BACKUP, ">/tmp/passwd_backup");

You probably want to use -f or -e instead of -T, as the
latter has to read through part of the file.

Also, there is a File::Touch module that will create
non-existent files.

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

Reply via email to