Quote:
Originally Posted by stukov
Code:
my $attributes = ['objectClass' => ['top', 'posixAccount', 'shadowAccount', 'inetOrgPerson'],
'loginShell' => "/bin/bash"];
|
$attributes is an array reference.
the => operator is effectively a comma operator where the left hand object is taken as a double quoted string. in the given code its probably used to make the association clear (like J65nko said).
i am not sure why they haven't used a hash reference. possibly for a small performance gain?