At 1:45 PM -0500 1/17/03, John Saylor wrote:
Hi

I have a project where I am trying to dump all the variable names and
values in a given package namespace. I can get all the variable names
OK, it's just getting the values from those names that I am not able to
do.

I have some code like this:
foreach $key ( keys %main::Package:: ) {
  $val = $WW::Package::{$key};
  print "$key\t$val\n";
}

but all I get is typeglobs.
Typeglobs are all that's in symbol tables. You need to look in the globs if you want to get values.
--
Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to