Hi all,
On Mon, 16 Apr 2001, darren chamberlain wrote:
> Thomas K. Burkholder ([EMAIL PROTECTED]) said
[snip]
> > my $input = IO::File->new("</tmp/tmppswd") || die "Couldn't open /tmp/foo.pl";
Probably doesn't matter in this case, but I'd try to get used to using
the "or" operator instead of the C-style double pipe in this kind of
construct. It has a much lower precedence so it can cause you less
pain. (Camel book, p94). Also I'd use Symbol::gensym (Camel Book,
p502 and the Guide at http://perl.apache.org/guide). It can help to
include the system error string (from the Perl special variable $!) in
the error message which you print after a failed system call so in this
case you'd be a lot wiser after the event (permissions, disc full...:).
73,
Ged.