in reply to Re^2: perl -e in ssh
in thread perl -e in ssh

ikegami the code just blurts out ksh: 4: not found also there is something about this line thats not right $s = s/'/'\\''/g ; Please guys can point out where I am going wrong.

Replies are listed 'Best First'.
Re^4: perl -e in ssh
by ikegami (Patriarch) on Apr 13, 2010 at 19:22 UTC
    They're both the same problem.
    $s = s/'/'\\''/g;
    should be
    $s =~ s/'/'\\''/g;

    Fixed in original code. Tested.