in reply to Re^2: To use Shell method on Active Perl

Can you please show us a small, self-contained program that exhibits the problem so we can reproduce it? It should look something like the following:

#!perl -w use strict; use Net::SSH2; my $local = '/home/test/test.txt'; my $remote = 'test.txt'; scp_put($local, $remote );

(but that example doesn't write anything other than to a file named 'test.txt' for me). Did you maybe read the remote name from a file and did not clean up the line properly?