perl script script, bash script perl script script.
, Perl script :
chdir "/my/directory";
...
, , bash script :
#!/usr/bin/bash
cd /my/directory
perl my_program.pl "$@"
script, , ..
$ source my_bash.sh
$ . my_bash.sh
(Now you could use the heredoc syntax and put it in one script:
#!/usr/bin/bash
cd /my/directory
perl <<EOF
... include your perl script here ...
EOF
But I donβt think you could use variables @ARGV)
source
share