They're different operators. => is the same thing as the comma. It's sole difference is readability. For example
%hash = ( key => "value", key2 => "value2", ); #is the same as %hash = ( key, "value", key2,"value2", ); #is the same as %hash = ( key, "value" => key2,"value2" => ); #Although that last one is confusing... -> is an operator useful when dealing with reference. Not to get into too much detail, because it sounds like you're pretty new at Perl from your questions, if $hash_ref = {key => "value", key2 => "value2"}; print $hash_ref->{key}; It will go and get the 'key' key from the hash that $hash_ref points to. This works for array, packages, and other stuff too. For example, Foo::Bar->new means to go into Foo::Bar module and do the new subroutine. In a message dated 2/20/2004 9:54:32 PM Eastern Standard Time, [EMAIL PROTECTED] writes: what is the difference between -> and => -Will ----------------------------------- Handy Yet Cryptic Code. Just to Look Cool to Look at and try to decipher without running it. Windows perl -e "printf qq.%3i\x20\x3d\x20\x27%c\x27\x09.,$_,$_ for 0x20..0x7e" Unix perl -e 'printf qq.%3i\x20\x3d\x20\x27%c\x27%7c.,$_,$_,0x20 for 0x20..0x7e'