Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Set of scripts using same variables

by tcf22 (Priest)
on Mar 15, 2004 at 17:31 UTC ( [id://336760]=note: print w/replies, xml ) Need Help??


in reply to Set of scripts using same variables

If they are configuration vars, then I would go with rinceWind's suggestion of the Config::* modules.

If you have groups of scripts with that same piece of code, you can just stick it in a common script an require it.

Script1.pl
require 'common_stuff.pl'; &common_function;

common_stuff.pl
sub common_function(){ #...code goes here... }

- Tom

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-19 12:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found