Posted on 2008-08-27 05:15:16-07 by raimundh
Parameter Case-sensitivity
Hi There

I'm busy converting an auditing script (5000+ lines) we have from Net::Telnet::Cisco to Net::Appliance::Session and I must say, I'm loving NAS. Due to them both being based on Net::Telnet, many of the methods are the same, or at least perform similarly, so conversion is working out to be relatively easy.

The one thing I'd like to request, and this is less of a 'have to have' and more of a 'would be nice' is that the parameters aren't case sensitive. eg: (random example)

$session->cmd(string => "show config | i ^hostname", output => \@host) #this used to work in NTC. $session->cmd(String => "show config | i ^hostname", Output => \@host) #this works in both NTC && + NAS.

As I say, its more of a 'would be nice'/'nice to have'. It would help immensely with cutovers from the now (seemingly) un-maintained NTC.

That's all from me ;)

Thanks
Raimund

Direct Responses: 8718 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.