1 |
New operator => is equivalent to , and use if you feel it looks better
|
2 |
%hash = ( 'key1' , 'value1', 'key2' , 'value2' ); # perl4 is same as
|
3 |
%hash = ( 'key' => 'value1', 'key2' => 'value2' ); # perl5
|
4 |
New Operator -> is dereferencing operator
-
hard/soft reference to array reference -> [index];
-
hard/soft reference to hash reference-> {'key'};
-
class or object -> method;
|
5 |
in hash arrays , quotes are now optional if unambiguous i.e. couldn't be an expression
|
6 |
$days{'Feb'} and $days{Feb} are the same!
|