Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Private Utilities

by duelafn (Parson)
on Dec 01, 2005 at 00:03 UTC ( [id://513153]=note: print w/replies, xml ) Need Help??


in reply to Private Utilities

How about a module (docs, Dean::Util) that removes dependency on itself from other modules. For example:

# In some script/module use Dean::Util qw/map_pair nsign min_max/; # other code ...

Then later to send the script to other machines:

perl -MDean::Util -we insert_Dean_Util_functions the_script.pl

This replaces the use Dean::Util line with the code for the subs requested (and optionally documentation).

Good Day,
    Dean

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found