in reply to What vars did it define?

I'm assuming that the use BigLevers; statement has exported it's variables into your namespace using the standard Exporter mechanisms. In that case, the exported variables will now have entries in your current package's typeglobs.

Assuming thatyou're working from the main package, you can do something liek this to find out which variables have been exported to your package:

if (defined *{$main::{NETOVERGROSS_ORDS}}{SCALAR}) { # $NETOVERGROSS_ORDS exists } else { # $NETOVERGROSS_ORDS doesn't exist. }

If messing about in typeglobs doesn't thrill you, then you can use the Devel::Symdump module which will do it all for you.

--
<http://www.dave.org.uk>

"Perl makes the fun jobs fun
and the boring jobs bearable" - me

Replies are listed 'Best First'.
Re: Re: What vars did it define?
by nop (Hermit) on Dec 04, 2000 at 19:23 UTC
    You assume too much! (grin) Let me repeat my apology for ignorance here...
    The code snippet above is it, in its entirety... no exporter, nothing fancy. Just what you see, and used via  use BigLevers; in the other scripts. Your comment suggests I'm not doing this right, which I suspected, which is why I posted seeking advice... any better approaches / tips most welcome! Thanks --

    nop

      Oops. Sorry for overcomplicating :)

      No Exporter, but no different package either - so there's no need to export stuff.

      I think you'll find that my suggestion will still work in that case, as the variables will be created in your current package.

      --
      <http://www.dave.org.uk>

      "Perl makes the fun jobs fun
      and the boring jobs bearable" - me