I have a perl script,Test.pl
which needs arguments from command line like test.pl arg1 arg2 arg3
how can i call it from a shell script
I have a perl script,Test.pl
which needs arguments from command line like test.pl arg1 arg2 arg3
how can i call it from a shell script
I am new to perl. But may be this is the syntax
perl -w test.pl arg1 arg2 arg3
ranj@chn, you are correct.
Optionally, you can set execute permission to the perl script, add the following line as first line in the script:
#!/usr/bin/perl -w
and then call it as:
test.pl arg1 arg2 arg2