If I use =>
in an array structure like my $arr = [ a => b ];
, is it the same thing as my $arr = [a, b];
? (Actually I have an unrelated question here, why initializing array this way doesn't require arr
prefixed with @
? )
Source: http://www.misc-perl-info.com/perl-operators.html
If this is true, then is there a good reason for perl to have this seemingly obscure feature?