in reply to Exporting all variables and subroutines using Exporter

Hi t-rex,

If both files happen to use the same package name, there is no exporting needed. Saying "all variables and subroutines" is unclear: Do you want to export only package globals or lexical variables (my) as well? You could also clarify these things by providing some example code. I'm also guessing you only want to export things you defined yourself, but the package symbol table will actually end up having more stuff in it than you'd probably like to export (for example, defining an array our @arr also causes a scalar $arr to show up in the symbol table reported by Devel::Symdump!), so I think automating the export by looking into the symbol table is probably not a good option. How many functions and variables are you talking about? If it's a reasonable number, it might just be easier to type them into @EXPORT_OK than to attempt an automatic export. Or, adjust the package names so they match, and don't worry about exporting at all.

Hope this helps,
-- Hauke D