Help for this page

Select Code to Download


  1. or download this
    $ perl -E 'my $arg1 = $ARGV[1]; my $arg1 = $ARGV[2]; my $arg1 = $ARGV[
    +3]; say $arg2; say $arg3'
    "my" variable $arg1 masks earlier declaration in same scope at -e line
    + 1.
    ...
    Global symbol "$arg2" requires explicit package name (did you forget t
    +o declare "my $arg2"?) at -e line 1.
    Global symbol "$arg3" requires explicit package name (did you forget t
    +o declare "my $arg3"?) at -e line 1.
    Execution of -e aborted due to compilation errors.
    
  2. or download this
    system qw{plink.exe -ssh me@myserver -pw password . ./scripts/myscript
    +.sh}, @ARGV[0..2];
    
  3. or download this
    $ perl -E 'system qw{ls -l}, @ARGV[0..2]' x y z
    -rw-r--r--  1 ken  staff  0 15 Sep 15:02 x
    -rw-r--r--  1 ken  staff  0 15 Sep 15:02 y
    -rw-r--r--  1 ken  staff  0 15 Sep 15:02 z