develooper Front page | | Postings from July 2002

Re: Golf this.

Thread Previous | Thread Next
Francesc X . Noria
July 16, 2002 02:22
Re: Golf this.
Message ID:
On Tue, 16 Jul 2002 16:07:33 +1000 wrote:

: How about this?
: #!perl -p
: $h{$_}=""}for(sort%h){

I cannot see how that works. Why is $_ not printed in each loop? How
that strange position of braces (...}...{) work? When and how is the for
looping? I would be very grateful if you could explain it a bit or point
to some earlier thread in case that was treated earlier in this list.

-- fxn

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About