Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: exec vs. system

by jpl (Monk)
on Jul 07, 2011 at 17:39 UTC ( #913230=note: print w/ replies, xml ) Need Help??


in reply to Re: exec vs. system
in thread exec vs. system

By the way, wouldn't it be easier to give the data as parameter to swap.pl, i.e. system("swap.pl \"$_\" &")? This would only work for non-binary data naturally and you would have to escape " \ and $ in the string.
Not only easier, but more robust. Those of us who have been burned in almost every possible way cringe at the assumption that swap.pl will be done with the control file in less than one second, when it will be replaced by the control file for another instance. If the control data is too complex to pass as an argument, then give each control file a different name and pass the name to swap.pl as an argument.


Comment on Re^2: exec vs. system

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2014-07-30 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls