http://www.perlmonks.org?node_id=1222963


in reply to Re^2: goto HACK
in thread goto HACK

Yes, the keys function returns temporary copies of the keys while values returns the actual values. So
$_++ for @a; # modifies each element of @a $_++ for values %hash; # modifies every value of %hash $_++ for keys %hash; # doesn't do anything useful

Dave.