Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2016-12-05 03:30 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (71 votes). Check out past polls.