On Sunday, July 14, 2002, at 05:31 , chris wrote: [..] > The use statement will lead to compile errors if I do not have all the > dependencies in my perl install. A work around would be to copy and > paste the sub inline. > > Is there another way to reference a standalone sub in a complex perl > package?
what you want to learn about are %EXPORT_TAGS and @EXPORT_OK so that you can 'group functions' in a large perl module. This way you can have things like use FOO::BAR qw/:std :fancy/; and get two sets of functions. What you can try is use FOO::BAR; my $answer = &FOO::BAR::some_one_function(@arg_list); or use FOO::BAR; ... my $that_func = \&FOO::BAR::some_one_function; .... my $answer = $that_func->(@arg_list); but you may want to do some review about how you got your 'one big package' and whether it might be time to do some review of what all really needs to be where.... the eternal 'one or more' problem. ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]