CIW 1D0-437 - CIW PERL FUNDAMENTALS
Running your Perl scripts with a w switch will perform which task?
Which keyword indicates an object reference rather than a variable reference?
Consider the following code:
%hashA = ("alpha", "beta", "gamma", "alpha");
%hashA = reverse(%hashA);
print $hashA{"alpha"};
What is the result of executing this code?
Consider the following program code:
$x = 10;
LOOP: while ($x < 15)
{
print ($x );
if ($x >= 14 && $x <= 20)
{
$x += 2;
redo LOOP;
}
else
{
$x++;
}
}
What is the result of executing this program code?
In Perl, packages are used for which task?
Consider the program code in the attached exhibit. What is the result of executing this program code?

Which one of the following choices will replace all occurrences of the word perl with the word Perl?
Consider the following code block:
BEGIN {print ("Jan ");}
BEGIN {print ("Feb ");}
END {print ("Mar ");}
END {print ("Apr ");}
Print ("May ");
What is the result of this code block?
Consider the following command:
perl runme.pl arg1 arg2 arg3
Given this command issued on the command line, what is the value of @ARGV?
Consider the program code in the attached exhibit. What is the result of executing this program code?
