The stupid question is the question not asked | |
PerlMonks |
Re: A Beginner Apparently Sucks With Hashes...by CheeseLord (Deacon) |
on Jul 22, 2001 at 10:28 UTC ( [id://98778]=note: print w/replies, xml ) | Need Help?? |
I can tell you why it happens... this line right here:
Inside that foreach loop, you're overwriting the hash each time. You'll probably want to do something like this:
However... there are MUCH easier ways to do parameter grabbing, and I (along with 99% of the monastery) suggest you check out and use CGI.pm, along with strict and -w, if you aren't already. Hope that helps! Update: Added example code. His Royal Cheeziness
In Section
Seekers of Perl Wisdom
|
|