perl -e -s -foo=bar 'print $foo' #### #!/bin/ksh var=bar perl -se 'print $foo' -- -foo=${var}