in reply to passing arguments to a shell script in a here document passed to system() ?
i.e. double quote STRING and use perl variables (quoted if needed) without introducing environment ones. You have to escape script variables, though: \$var.system << "SCRIPT"; date echo "arg1($value)" SCRIPT
If you need $@ and shifting, write the script to a file and run it :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: passing arguments to a shell script in a here document passed to system() ?
by jethrick (Initiate) on Jun 09, 2011 at 15:32 UTC |