Rob Dixon wrote:
What I recommend instead is

 open OMARFILE, 'junk' or die "Input file cannot be opened: $!";

The recommended usage of open is:

 open my $omarfh, '<', 'junk' or die "Input file 'junk' cannot be opened: $!";

The three argument is preferred as a malicious user could enter a file name that 
starts with '>'

The lexically scoped file handler is preferred since it won't interfere with 
other file handlers.


--
Just my 0.00000002 million dollars worth,
  Shawn

"For the things we have to learn before we can do them, we learn by doing them."
 Aristotle

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


Reply via email to