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?