As a Perl monk I like to program in Perl. If a function must be reusable than I simply place it in a .pm
Recently however a user asked me to to write a Korn shell function to do something that I would rather do in Perl.
The problem is that I am not allowed simply to pass parameters through the Korn shell to the Perl function, e.g., I cannot simply write a Korn shell script that says: `myperlmodulewrapper.pl myshellparam`or something like that, since myshellparam will be visible to those who do a `ps` from the shell.
If I have to I will take out my O'Reilly Learning the Korn Shell and write this function purely as a Korn shell script. But I would rather come up with a simple Korn shell function that in turn calls a Perl module or Perl script, and does so without passing parameters through the shell to Perl.
Is what I would like to do possible?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.