SPUG: A bug?

Itay Furman itayf at fhcrc.org
Wed Jul 16 14:54:53 CDT 2003


So it was a bug, albeit a one in my 'program' ... Thanks :-)

On Tue, 15 Jul 2003, Yitzchak Scott-Thoennes wrote:

> On Tue, 15 Jul 2003 15:16:59 -0700 (PDT), itayf at fhcrc.org wrote:
> >  'ioctl-test.pl FILE'
> >prints
> >  'Inappropriate ioctl for device'
> >and fails when tested for $!.
> >In contrast,
> >  'cat FILE | ioctl-test.pl'
> >prints nothing (as expected? :-).
> 
> $! is meaningless unless there has been an error.  When <> (aka readline)
> returns undef and you want to check for an error, first call eof.  If
> it wasn't eof, then check $!.
> 




More information about the spug-list mailing list