I must agree with James :-) Most times I post, I usually tend to solve the main problem without caring about the others, but I should really make an effort and act a little more like him :-)
jac On Thu, 2004-04-29 at 14:25, James Edward Gray II wrote: > 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 -- Josà Alves de Castro <[EMAIL PROTECTED]> Telbit - Tecnologias de InformaÃÃo -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>