This test is designed to assess a candidate's knowledge of the Perl programming language. It will cover topics such as basic syntax, files and I/O, and regular expressions. The test will include questions on how to write code in Perl, how to read and write files, and how to use regular expressions to search for patterns in strings. Candidates should be familiar with the fundamentals of the language as well as more advanced concepts.
Example Question:
1. $VAR1 = {
'orange' => '2Kg',
'grape' => '3Kg'
};
2. $VAR1 = {
'grape' => '3Kg',
'orange' => '2Kg',
'apple' => '1Kg'
};
3. $VAR1 = {
'apple' => '1Kg'
};
4. $VAR1 = {};