I haven't seen this before. Can you do this to add more subs to a module without making a parent module out of them?
With the 'system' definitely not, it executes in a separate process completely. 'require' simply loads the code, which may or may not have subs in it. In the case that it does, the subs will be in whatever package space is defined within the lib, if no package space is defined then they will be in the main or :: namespace. You can specify a pre-existing namespace to have them load into using a 'package' statement, or I would imagine there is a way (read: no one would probably bother, but since this is Perl there just about a way to do anything, if you can find it) to export the subs into the current namespace at which point your goal would be achieved.
perldoc -f package perldoc perlmod perldoc perlsub
My question would be would you want to?
http://danconia.org
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>