In article <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED] (via RT)" <[EMAIL PROTECTED]> writes:
> BAD:
> "vanilla Perl-5.8.6" or "Fedora Core 3 perl-5.8.5-9":
> $ echo a >/tmp/a;perl -e 'open FH,"/tmp/a" or die;$!=undef();my
> $line=<FH>;print "$!:$line\n";'
> Bad file descriptor:a
>
Not a bug really. $! is only meaningful immediately after a system or library
call *failed*. Succesful calls are in principle allowed to change $!
any way they like.
Having said that there doesn't seem to be a good reason for $! to
get set here though. But tracking the base cause down would be mainly for
curiosity.