in reply to Net::SSH2 unlink trouble.

Are you certain you want to do a $get_xml->unlink($rem_name) or die "Couldn't remove $there: $!";, or do you mean $get_xml->unlink($there) or die "Couldn't remove $there: $!";?

Replies are listed 'Best First'.
Re^2: Net::SSH2 unlink trouble.
by ncalsmitty1369 (Initiate) on Feb 13, 2008 at 20:51 UTC
    Good catch, that was actually a mistake on my part while trying to shorten the code down from its original form. Running this example as it was, or with the change in variable, produce the same error though.