in reply to getting the exact string used to call a perl script

I'm going to go out on a limb here, and guess that you want to call ssh with the options passed to your script, but avoid problems with the shell misinterpreting the arguments. The solution is not to use the shell at all, but instead use the list form of system, exec, or open (whichever you're using). It can be as simple as:

use strict; use warnings; do_something_first(); system ssh => @ARGV;

Replies are listed 'Best First'.
Re^2: getting the exact string used to call a perl script
by reasonablekeith (Deacon) on Oct 12, 2005 at 16:04 UTC
    That's exactly what I'm trying to do! ++ ( if this works :) )
    ---
    my name's not Keith, and I'm not reasonable.