Subject: | Can't look at IO::Scalar object in debugger |
Given
perl -de 1
$string = '';
$handle = IO::Scalar->new( \$string );
the following occurs
DB<5> x $handle
0 IO::Scalar=GLOB(0x804c1b4)
-> *IO::Scalar::FH
Can't locate object method "FILENO" via package "IO::Scalar" at /usr/lib/perl5/5.8.0/dumpvar.pl line 238.
dumpvar::unwrap('IO::Scalar=GLOB(0x804c1b4)',3,-2) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 118
dumpvar::DumpElem('IO::Scalar=GLOB(0x804c1b4)',3,-2) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 223
dumpvar::unwrap('ARRAY(0x82ed988)',0,-1) called at /usr/lib/perl5/5.8.0/dumpvar.pl line 33
main::dumpValue('ARRAY(0x82ed988)',-1) called at /usr/lib/perl5/5.8.0/perl5db.pl line 2047
DB::dumpit('GLOB(0x8069e94)','ARRAY(0x82ed988)') called at /usr/lib/perl5/5.8.0/perl5db.pl line 32
DB::eval called at /usr/lib/perl5/5.8.0/perl5db.pl line 1323
DB::DB called at -e line 1
This makes it nearly impossible to debug code when using IO::Scalar
The entire script dies