In some Perl code I have been asked to maintain, I encountered the following construct:
myArray => ['id1', 'id2', 'id3', 'id4']
I searched the web for some definition/explanation of this but all I could find was a reference to scalar hashing:
https://www.guru99.com/perl-tutorials.html
This is a snippet from the actual code I encountered:
$config = eval {
XMLin(
$inFile,
MyArray => [
'id1', 'id2',"id3", 'id4'
]
);
};
What does that syntax of hashing an entire array (without the hash values) mean?