Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Korn Shell Wrappers for Perl Module Functions?

by runrig (Abbot)
on Jul 10, 2001 at 20:36 UTC ( [id://95355]=note: print w/replies, xml ) Need Help??


in reply to Korn Shell Wrappers for Perl Module Functions?

If they want a Korn shell function to execute from a shell script, then it may be more efficient to just do it as a Korn shell function. It'll be one less process to spawn. Then again, depending on the function maybe it would be worthwhile to write the Perl script.

You could pass arguments by environment variables, of course, but command line args are usually better especially if you want to optionally run this script from the command line. Or you could take command line args if they're there, but default to the %ENV hash if there are no command line args.

Besides, 'ps -f' on my system anyway, would show that it IS a perl script running no matter what argument passing you used. (Or are you just worried about the parameters showing?)

  • Comment on Re: Korn Shell Wrappers for Perl Module Functions?

Replies are listed 'Best First'.
Re: Re: Korn Shell Wrappers for Perl Module Functions?
by belg4mit (Prior) on Feb 16, 2002 at 05:48 UTC
    Chances are though to do anything much more complicated than addition the korn shell script will have to fork off many processes for things like sed, tr, etc.

    --
    perl -pe "s/\b;([st])/'\1/mg"

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://95355]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-24 10:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found