in reply to Re: Net::Telnet::Cisco usage
in thread Net::Telnet::Cisco usage


Hi Tachyon
++++++++ :)
yes, an array is needed to store success output also.Oversight on my part.
Two things i learnt from your post
1 . Usage of next if rather than my ungainly if(pattern) && if(pattern)
2 . The use of Data::dumper to print what i understand to be a "home made" data structure.
Thanks for the tips
regards,
rajdeep.

Replies are listed 'Best First'.
Re: Re: Re: Net::Telnet::Cisco usage
by tachyon (Chancellor) on Dec 22, 2003 at 11:51 UTC

    chomp() was the other thing you missed. It may or may not make a difference in this case but lines from files have newlines that you typically don't want.....

    cheers

    tachyon

Re: Re: Re: Net::Telnet::Cisco usage
by tachyon (Chancellor) on Dec 23, 2003 at 03:07 UTC

    The other useful thing is:

    $DEBUG = 1; ..... $DEBUG && print "Well at least I got to here and I can get rid of this + msg by setting \$DEBUG = 0\n";

    cheers

    tachyon