Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: To script or not to script, that is the question...

by castaway (Parson)
on May 31, 2005 at 12:28 UTC ( #462019=note: print w/replies, xml ) Need Help??

in reply to To script or not to script, that is the question...


You name two extremes though, you have a module, complete with own namespace etc, and are trying to decide between that and system()ing a script? The module/own namespace gives you the assurance that you can even use it in scripts that may already have some sort of "update" function that does something else. The other alternative would be to make it a simple .pl containing the sub, and using do "" in your scripts, which will give the calling script it the update sub in it's own namespace.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://462019]
and the grasshoppers chirp...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2017-06-24 10:30 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (557 votes). Check out past polls.