in reply to Re: Problem with adding variable from array
in thread Problem with adding variable from array

Have you also removed those superfluous shifts in

-hostname => shift || $node, -community => shift || $community

i.e. changed those lines to

-hostname => $node, -community => $community,

(Otherwise, -community would most likely be set to "MyNode" (=$ARGV[1]), not "public"...)

Replies are listed 'Best First'.
Re^3: Problem with adding variable from array
by Bennco99 (Acolyte) on Feb 02, 2007 at 17:14 UTC
    Removing the shifts worked. Thank you to everyone for your help!
    Thank you
    JB