http://www.perlmonks.org?node_id=95357


in reply to Korn Shell Wrappers for Perl Module Functions?

How about
echo Var1=$var1 Var2=$var2|perlscript
? You can see the environmentspace with ps too.

Replies are listed 'Best First'.
Re: Re: Korn Shell Wrappers for Perl Module Functions?
by Malkavian (Friar) on Jul 10, 2001 at 21:36 UTC
    Perhaps what the ps is showing is the args to echo, not the args to the perl script?

      For most shells, 'echo' is a built-in and so doesn't require a different process and so what would show up in 'ps' output would be 'ksh' and the arguments passed to it. So the arguments to 'echo' shouldn't show up in the 'ps' output. This is the method I would use.

              - tye (but my friends call me "Tye")
        Sorry to Anonymous there.. I'd misread the post slightly, and took it to mean that he/she was getting the arguments showing up somehow.
        Time for me to wake up and read more closely I guess..

        Malk