[Israel.pm] P roblem with

Offer Kaye offer.kaye at gmail.com
Sun Oct 17 06:57:39 PDT 2004


On Sun, 17 Oct 2004 15:39:11 +0200, Alex Behar wrote:
> | while(($key,$val) = each %ENV){
> |         print $key.":".$val."\n";
> | }
> equivalent to
> foreach(keys %ENV){print $_.":".$ENV{'$_'}."\n"}
> 

Just curious - do you *really* think that removing whitespace and
proper indentation and using $_ makes your code *clearer*, compared to
the original?

-- 
Offer Kaye



More information about the Perl mailing list