MCQs>IT & Programming>Perl>What is the following code output? (check all that apply)foreach my $operator ( qw(+ − * /) ) { my $result = eval '2 $operator 2';
print '2 $operator 2 is $result\n';
Perl MCQs
What is the following code output? (check all that apply)foreach my $operator ( qw(+ − * /) ) { my $result = eval '2 $operator 2';
print '2 $operator 2 is $result\n';
Answer
Correct Answer:
2 * 2 is 4
Explanation:
Note: This question has more than 1 correct answers
Note: This Question is unanswered, help us to find answer for this one