in reply to Re: Net::SSH2 unlink trouble.
in thread Net::SSH2 unlink trouble.

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.