I think...

open(DATA, ">$file") or die "cannot open: $!";

would do the trick.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 10:25 AM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: Deleting the contents of a file
> 
> 
> perldoc -f unlink
> 
> -----Original Message-----
> From: Allison Ogle [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 11, 2002 10:26 AM
> To: [EMAIL PROTECTED]
> Subject: Deleting the contents of a file
> 
> 
> Hi,
> 
> I want to opena datafile and erase it's all it's contents.  
> Can anyone help?
> Thanks,
> 
> Allison
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


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

Reply via email to