|
|
| Do you know where your variables are? | |
| PerlMonks |
Re: Miscellaneous.pm?by duelafn (Parson) |
| on Mar 03, 2006 at 12:55 UTC ( [id://534308]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Like many, I use a module (docs, Dean::Util), however it also has the ability to remove dependency on itself from scripts and other modules. For example:
Then later to send the script to other machines:
This replaces the use Dean::Util line with the code for the subs requested (and optionally documentation). The insert_Dean_Util_functions function is a bit of a kludge, but it works. This gives the benefits of using a module (old code uses improved functions when I get a chance to fix up code in the module) as well as the benefits of copy-paste (can transfer scripts to other machines without installing my module). Good Day,
In Section
Meditations
|
|
||||||||||||||||||||||||