in reply to Recursive use statements?
You can always call subroutines in other modules like this:"CD::testing(); AB::testing();". So calling them is easy
I assume that importing two functions with the same name also produces warnings. If you want to avoid these, you could change your modules to only export on request, i.e. instead of @EXPORT use @EXPORT_OK in the module and if you want to import a subroutine into your namespace, use "use AB(testing);".
Or you call a module like this: "use AB()"; In this case no names are imported at all, even when they are in your @EXPORT array.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Recursive use statements?
by JavaFan (Canon) on Jul 21, 2011 at 08:45 UTC |