Could anyone help me to fix Bug#214036 in the im package
(mail/news handling utility written in Perl)?
On October 4, 2003 at 2:06PM +0900,
Tatsuya Kinoshita <[EMAIL PROTECTED]> wrote:
> On October 4, 2003 at 12:59PM +0900,
> Kenshi Muto <[EMAIL PROTECTED]> wrote:
>
> > I found `imput' didn't work with newest Perl 5.8.1 package.
>
> > imput: (while talking to localhost with smtp)
> > Bad file descriptor
> > ^^^^^^^^^^^^^^^^^^^
> >
> > This error looks be made by Smtp.pm.
>
> I found that `$resp = <$CHAN>;' in IM/TcpTransaction.pm
> (tcp_command) caused this error, but I've not yet understood why
> this error occurred...
With the perl 5.8.1 package, the line input operator (<>) causes
"Bad file descriptor". This problem is reproducible by the
following sample code.
----
#!/usr/bin/perl
$file = "/etc/debian_version";
open(FH, $file) or die "Cannot open $file";
$! = 0;
$line = <FH>;
if ($!) {
print "System error: $!\n";
}
print "$line\n";
close(FH);
----
Is this a bug in the perl 5.8.1 pakcage? Or a Perl's feature?
What should I do?
--
Tatsuya Kinoshita, Debian im package maintainer
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]