I could really use the following for command-line hacks (like checking
to see if some use of a library function is valid):
env variable, "PERLMODS"
Would be a space-separated list (or, whatever sep-char you
wanted. Can't be ":"). Contains a list of modules that should be
auto-used before parsing of the script. Why? Because for command-line
work, listing 5 libraries takes up too much room, and when you want a
quick one-liner to verify something, having to edit a file is a pain
in the ass.
-AJS
PS: The other option is a "~/.perlrc" that would be checked if
-<mumble> command-line flag was given, or if -e was used. In this way,
you would always get the dot-file when you really want it, and would
never get it from stand-alone scripts, where it could be a *bad
thing*(tm). The problem is that it is just as much a pain to edit
~/.perlrc as to create the stand-alone prog. so I see people having a
.perlrc that does the moral equiv of: "use $PERLLIB/*", which would
make all startups seem verrry slllowwww....
--
Aaron Sherman <ajs@ajs.com> B4 f w+ c kv s+(--)v r p
I-Kinetics, Inc. Pager: (508)545-0584
1 NE Executive Park Fax: (617)270-4979
Burlington, MA 01803-5005 WWW: http://ajs.com/~ajs/
ajs@ajs.com or ajs@openmarket.com
"I speak for no one."
to see if some use of a library function is valid):
env variable, "PERLMODS"
Would be a space-separated list (or, whatever sep-char you
wanted. Can't be ":"). Contains a list of modules that should be
auto-used before parsing of the script. Why? Because for command-line
work, listing 5 libraries takes up too much room, and when you want a
quick one-liner to verify something, having to edit a file is a pain
in the ass.
-AJS
PS: The other option is a "~/.perlrc" that would be checked if
-<mumble> command-line flag was given, or if -e was used. In this way,
you would always get the dot-file when you really want it, and would
never get it from stand-alone scripts, where it could be a *bad
thing*(tm). The problem is that it is just as much a pain to edit
~/.perlrc as to create the stand-alone prog. so I see people having a
.perlrc that does the moral equiv of: "use $PERLLIB/*", which would
make all startups seem verrry slllowwww....
--
Aaron Sherman <ajs@ajs.com> B4 f w+ c kv s+(--)v r p
I-Kinetics, Inc. Pager: (508)545-0584
1 NE Executive Park Fax: (617)270-4979
Burlington, MA 01803-5005 WWW: http://ajs.com/~ajs/
ajs@ajs.com or ajs@openmarket.com
"I speak for no one."