|
| | Date: | 2008-07-15 10:47 |
| Subject: | Perl n00b question |
| Security: | Public |
| Current Mood: | n00b |
|
I'm a long-time shell programmer, but I'm not that hot with Perl.
Most shells have a source command, analogous to C's #include. I have a bunch of Perl scripts that have hard-coded data that needs to be abstracted out, e.g.,
$my_site = "New Jersey";
There will also be a couple small functions in the "if not cached, do the expensive thing then cache it, else use the cached value" vein.
Should I try to use whatever Perl's equivalent of source is, or is this involved enough to cobble together a library or module?
|