From: "Beau E. Cox" <[EMAIL PROTECTED]> > From: John Dunn [mailto:[EMAIL PROTECTED]] > > > > open(MYFILE, ">$myfile") | die "Cannot open file"; > > You need an or conditional ('||') not operator ('|'): > > open(MYFILE, ">$myfile") || die "Cannot open file"; > ^^ > Your message should appear! || you can use 'or'. :)
Good catch :-) You are right. I did not notice that one. Problem is ... the | instead of || would cause the message to be printed even if the file was opened fine. Which is not what John seems to get. Jenda P.S.: Please don't top-post. ===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== When it comes to wine, women and song, wizards are allowed to get drunk and croon as much as they like. -- Terry Pratchett in Sourcery -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]