How to call a perl script in shell program / shell scripting.
PLS HELP ME
How to call a perl script in shell program / shell scripting.
PLS HELP ME
Any (well written) Perl program should probably have a shebang ( #!/usr/bin/perl ....
) in it.
In that case, call it as you would call anything else.
Same as any executable, see "man 2 exec":
1) Naming: does not matter, but popular choices are:
2) Finding:
3) Calling:
$ man perl
Reformatting entry. Wait...
PERL(1) 2001-12-07 PERL(1)
Perl Programmers Reference Guide Perl Programmers Reference Guide
perl v5.6.1
NAME
perl - Practical Extraction and Report Language
SYNOPSIS
perl [ -sTuU ] [ -hv ] [ -V[:configvar] ]
[ -cw ] [ -d[:debugger] ] [ -D[number/list] ]
[ -pna ] [ -Fpattern ] [ -l[octal] ] [ -0[octal] ]
[ -Idir ] [ -m[-]module ] [ -M[-]'module...' ]
[ -P ] [ -S ] [ -x[dir] ]
[ -i[extension] ] [ -e 'command' ] [ --
] [ programfile ] [ argument ]...