in reply to
Empty a text file?
Yes. Try
open FILE, ">file.dat"; close FILE
[download]
I admit it's not a *lot* more elegant, but what do you expect?
sas
Comment on
Re: Empty a text file?
Download
Code
In Section
Seekers of Perl Wisdom