I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
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
Posted on 2008-09-02 12:39:23-07 by oliver in response to 8676
Re: Parameter Case-sensitivity

Hi Raimund

I must confess I hadn't realised that Net::Telnet did not check parameter case. This is an excellent suggestion, so I have patched Net::Appliance::Session to ignore parameter case as well, and sent a new version (1.26) to CPAN. It will probably be on your CPAN mirror in a few hours.

regards,
oliver.

Direct Responses: 8725 | Write a response
Posted on 2008-09-03 04:33:51-07 by raimundh in response to 8718
Re: Parameter Case-sensitivity
Hi Oliver

This is great, thanks. Porting my other scripts should be a fair bit easier now. :)

Regards
Raimund
Direct Responses: Write a response