http://qs1969.pair.com?node_id=948779


in reply to mysterious error of read function in solaris

Only check $! right after a system call

open ... or die $!;
close ... or die $!;
print ... or die $!;

my $read = read ...;
die $! unless defined $read;
  • Comment on Re: mysterious error of read function in solaris