Harry Putnam wrote:
'use' can be as simple or complex as you wish really. The only thing slightly more complicated is if @INC doesn't contain where your *.pm lives. But that would be a simple case of doingI know this is a horse that has been ridden hard before, but not so easy to find the results.How does one slurp a function or series of functions in perl? Similar to the way its done in shells': . somefunction I know about the: use (some.pm file); syntax, of course, but it seems to entail lots of extra details and knowledge, compared to the shell technique. Is there something comparably simple that allows perl scripts to slurp functions from a central source?
use lib ('/path/to/libs/');
before your other use MyModule call. Of course you could be after the 'about as simple as it gets' 'require', so:
perldoc -f require
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]