This works, at least in bash:
$ args=(one "two three" four "five six") $ perl -e 'for (@ARGV) {print "$_\n"}' "${args[@]}" one two three four five six
In reply to Re: passing parameters from shell script to perl program doesn't preserve spaces
by kschwab
in thread passing parameters from shell script to perl program doesn't preserve spaces [solved]
by peterbk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |