P
peterkayatwork
Hi,
I want to be able to attempt to open a file handle on a file, and if it
fails, I would like to open a "/dev/null" filehandle as it were...
So, if it fails, I want this to produce no output:
print $filehandle "This should go nowhere\n";
No warnings would be nice too
What's the best way to do this?
--Peter
I want to be able to attempt to open a file handle on a file, and if it
fails, I would like to open a "/dev/null" filehandle as it were...
So, if it fails, I want this to produce no output:
print $filehandle "This should go nowhere\n";
No warnings would be nice too
--Peter