Skip Menu |
 

This queue is for tickets about the Net-Telnet CPAN distribution.

Report information
The Basics
Id: 43584
Status: rejected
Priority: 0/
Queue: Net-Telnet

People
Owner: Nobody in particular
Requestors: bblazke [...] airwave.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Crash when using concurrently with XML::Simple
Download (untitled) / with headers
text/plain 655b
The following script will crash: use XML::Simple; use Net::Telnet; #use FileHandle; open (XMLFILE, '>test.xml'); print XMLFILE '<xml><name>bug</name></xml>'; close(XMLFILE); my $xml = XML::Simple->new->XMLin('test.xml'); warn $xml->{name}; unlink 'test.xml'; The error message says: Can't locate object method "read" via package "FileHandle" at /opt/airwave/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi/XML/Parser/Expat.pm line 477. An easy workaround is to uncomment the "use FileHandle" line. Net::Telnet apparently works when using FileHandle rather than IO::Socket::INET internally (when __io_socket_include evaluates to false).
Download (untitled) / with headers
text/plain 125b
It appears this is not caused by Net::Telnet as the sample code works fine in perl 5.14 Thanks for submitting this problem.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.