in reply to
Text File
You need to use the -e file test operator to see if a file exists or not.
There are also a slew of other file operators for all sorts of tests.
A list of these can be found in the Camel book.
if( -e $new_file ) { unlink( $new_file ); }
[download]
Wonko.
Comment on
Re: Text File
Download
Code
In Section
Seekers of Perl Wisdom