janasec has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: issue with code to save config on brocade swicth
by shmem (Chancellor) on Jul 27, 2015 at 18:11 UTC
    ($out,$err) = $ssh->capture2("{stdin_data =>yes},cfgsave");

    This is not what you have been told by Myrddin Wyllt in an answer to your previous question about the very same problem. Try:

    ($out,$err) = $ssh->capture2({stdin_data => 'yes'}, "cfgsave");

    Note that ({foo => 'bar'}, "baz") is not the same as ("{foo => bar}, baz"):
    The first expression is a list containing an anonymous hash and a string. The second is a list containing a string.

    update: added missing '}'

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

      tried that its not working

        and thanks Myrddin Wyllt

        A reply falls below the community's threshold of quality. You may see it by logging in.