I found this code example on Stack Overflow to prettyprint a hash: (link: http://stackoverflow.com/questions/2431032/how-to-print-a-key-value-using-the-perl-hases/2431139#2431139 )
use strict; use warnings; my %hash = (2009 => 9, 2010 => 10); print join (" => ", each %hash), "\n" while <keys %hash>; My question is: what is the angle bracket operator doing? I know its use as <FILE>, <$file>, and <*.glob>, but I've never seen it used like this, and I can't see anything in perlop#I/O Operators which would help. This code works on perl 5.8.8 so it's been a feature for some time, so it would surprise me if it's not documented anywhere, but I just can't find it. Philip -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/