On Sat, 2006-15-04 at 14:34 -0700, John W. Krahn wrote:
> Actually it will effect the values of the hash but not the keys:
> 
> $ perl -le'
> sub foo {
>     for ( @_ ) {
>         tr/a-z/A-Z/
>         }
>     }
> my @a = qw/ a b c d e f g h i j /;
> print "@a";
> foo @a;
> print "@a";
> my %h = qw/ a b c d e f g h i j /;
> print "@{[ %h ]}";
> foo %h;
> print "@{[ %h ]}";
> '
> a b c d e f g h i j
> A B C D E F G H I J
> e f c d a b g h i j
> e F c D a B g H i J

That's so weird I don't want to think about it!


-- 
__END__

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them, we learn by doing them."
  Aristotle

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/



-- 
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