Problem with Modem::Vgetty

Alex Povolotsky (tarkhil@asteroid.svib.ru)
Wed, 25 Nov 1998 18:03:53 +0300


Hello!

Attempting to write an answering machine in Perl, I run into the following 
problem:

calls to IO::Handle::print (and possibly read) seems to corrupt something... I 
really wonder what can cause messages like these:

Filehandle Symbol::GEN2 never opened at /usr/local/lib/perl5/5.00502/i386-freebsd/IO/Handle.pm line 379, <GEN0> chunk 1.
Filehandle Symbol::GEN2 never opened at /usr/local/lib/perl5/5.00502/i386-freebsd/IO/Handle.pm line 379, <GEN0> chunk 2.
Use of uninitialized value at /usr/local/lib/perl5/site_perl/5.005/Modem/Vgetty.pm line 113, <GEN0> chunk 3.
Filehandle Symbol::GEN2 never opened at /usr/local/lib/perl5/5.00502/i386-freebsd/IO/Handle.pm line 379, <GEN0> chunk 3.
Use of uninitialized value at /usr/local/lib/perl5/site_perl/5.005/Modem/Vgetty.pm line 113, <GEN0> chunk 4.
Filehandle Symbol::GEN2 never opened at /usr/local/lib/perl5/5.00502/i386-freebsd/IO/Handle.pm line 379, <GEN0> chunk 4.

and, what's the worst of all, these messages comes to script running from 
vgetty as modem responces. clobbering any work.

My data is:

[17:33] minas-tirith:~ > uname -a
FreeBSD minas-tirith.pol.ru 3.0-SNAP-980217 FreeBSD 3.0-SNAP-980217 #0: Fri Mar 20 22:31:52 MSK 1998     root@minas-tirith.pol.ru:/usr/src/sys/compile/MTKERNEL  i386
[17:42] minas-tirith:~ > perl -v

This is perl, version 5.005_02 built for i386-freebsd

Copyright 1987-1998, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

and Modem::Vgetty installed today from CPAN.

Alex.
-- 
Alexander B. Povolotsky  
[2:5020/145]  [http://freebsd.svib.ru] [tarkhil@asteroid.svib.ru]