On Apr 29, 2004, at 5:53 AM, Durai wrote:

Hi,
I have written many test cases using shell script. But now I am
writting in perl. I have done like the following one:


open(FILE_LOG,">log_file");

Don't do this. When we ask the OS to do something for us, like open a file, we need to make sure it succeeds, or find out why it didn't:


open LOG, 'log_file' or die "File error: $!";

James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to