What is the result of the following code?
$pvt = Calculation(6,4,8,12);
print("Result = $pvt\n");
sub Calculation{
my ($fstVar, $secndVar) = @_;
my $square = sub{
return($_[0] ** 2);
};
return(&$square($fstVar) + &$square($secndVar));
};
Correct Answer:
Result = 52
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Perl MCQ Questions