Menu

#19 module appears to be changing FileHandle package

open
nobody
None
5
2011-04-19
2011-04-19
Anonymous
No

I have a perl script for doing configuration for one of my network switches. This script also makes use of the XML::XPath module. However, when I try to include Net::Telnet::Cisco, things begin failing. The use of the module isn't an issue, as the only thing I had done was to include it at the top of the script.

so this works:
...
Stuff with XML::XPath
...

But this doesn't
use Net::Telnet::Cisco
...
Stuff with XML::XPath
...

I get 'Can't locate object method "read" via package "FileHandle" at /usr/lib/perl5/XML/Parser/Expat.pm line 469.' when I try to run it.

I'd love to use the module, but it looks like it's conflicting with the other libraries I'm using

Discussion


Log in to post a comment.

MongoDB Logo MongoDB