Harry Putnam wrote: > I 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?
There are several functions: perldoc -f do perldoc -f require perldoc -f use See "perldoc -q require" for a good overview of the different techniques. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]