[sf-perl] Embedded Perl in a Korn shell program
Rich Morin
rdm at cfcl.com
Fri May 11 14:36:19 PDT 2007
It's quite possible to embed multi-line Perl scripts
in shell scripts. And, although the quoting issues
can get pretty complicated, there are also some cool
things that you can do by using the shell as a macro
pre-processor for Perl (e.g., put a Perl script in a
loop, varying the code from iteration to iteration).
That said, I agree that keeping Perl in a separate
file is generally both simpler and safer.
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume rdm at cfcl.com
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Technical editing and writing, programming, and web development
More information about the SanFrancisco-pm
mailing list