Hi all,

Please tell me how to convert the elements of a hash to uppercase, if I can
access that hash only by reference.

For example, I have something like:

my $ref = { 'a' => 'aaa', 'b' => 'bbb', 'c' => 'ccc' };

And I want to make 'a' to be 'A', 'b' to be 'B' and so on, but the values of
the hash need to remain the same.

I have tried using map() but without success.

Thank you for your help.

Teddy


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to