in reply to One-liner's quoting and subroutine
Qou may use quoting operataors where my $example = 'first'; becomes my $example = q(first);1) How should I quote it (escape the single quotes) when I want to execute it on a remote machine via SSH? Ex. ssh root@HOST 'ONE-LINER'
2) Is there is a (smart) way to incorporate the following subroutine into the one-liner?
You could sqeeze it on one line, or you can put it in a file and make it a module, than upload it to the host, later use that module in the one-liner?
Cheers, Sören
Créateur des bugs mobiles - let loose once, run everywhere.
(hooked on the Perl Programming language)
|
|---|