[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] CGI.pm



>At 19.34 11/16/97, Iain Chalmers wrote:
>>also, when i was debugging this, i tried:
>>foreach $key (%in){print "<BR>$key=$in{$key}\n";}

%in is a hash, but you (or foreach) treat it as list.
so it get converted into a list with key and value as elements.

better is 
foreach $key (keys %in)
   {print "<BR>$key=$in{$key}\n";}
or even 
foreach $key (sort keys %in)
   {print "<BR>$key=$in{$key}\n";}

Karsten Meier

---------------------------------------------------------------------
Karsten Meier
EMail krstnmr@ibm.net
WWW: http://www.dezines.com/meier with following highlights:
 * german MacPerl Primer * XTensions for use with QuarkXPress 
Unsolicited and/or commercial email is not permitted at this address.



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch