in reply to Re: Re: Database issues
in thread Database issues

foreach $name (qw(George Bill Pocahantas Godzilla)){ $stats{$name} = int rand(10); # give the name a random value } while(my ($key,$value) = each %stats){ print "$key is $value years old\n"; }
Does this help?

-nuffin
zz zZ Z Z #!perl

Replies are listed 'Best First'.
Re: Re: Re: Re: Database issues
by Anonymous Monk on Apr 09, 2003 at 16:31 UTC
    not really, I can't pull a foreach off things collected from a form (maybe you can, I just don't see how it would work). Thanks.

      Have a look at Common Beginner Mistakes (item: Repetition without Abstraction).

      CountZero

      "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law