MCQs > IT & Programming > Perl > Output of the Perl code snippet? print 'T'; my $var1 = qr/(?{ BEGIN { print 'P' } })/; my $exp = 'exp'; /$exp$var1(?{ BEGIN { print 'Q' } })/; BEGIN { print 'S' }

Perl MCQs

Which of the given options is the correct output of the following Perl code snippet?

print "T";

my $var1 = qr/(?{ BEGIN { print "P" } })/;

my $exp = "exp";

/$exp$var1(?{ BEGIN { print "Q" } })/;

BEGIN { print "S" }


Answer

Correct Answer:

PQST 

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Perl Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Perl Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it