in reply to copying directory from other machine to local machine

"...copies...files from other machine to current machine... elegant way..."

I just remembered that rsync might be an option. See also File::Rsync and sshpass.

Best regards, Karl

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help