in reply to
How to erase the file content
perl -pi -e 's/.*//s' file
Comment on
Re: How to erase the file content
In Section
Seekers of Perl Wisdom