in reply to Can't call method "exec" without a package or object reference

Try to actually return $ssh; from sub OpenSshChnl

See also: Use strict and warnings

Replies are listed 'Best First'.
Re^2: Can't call method "exec" without a package or object reference
by rahul.pwav (Initiate) on Mar 28, 2011 at 08:55 UTC
    thaks now it is not giving error after adding return.