MCQs > IT & Programming > Perl > The correct output of the Perl code snippet? package Exp1; our $exp2; $exp2 = 45; package Exp2; our $exp2 = 85; print $exp2; our $exp2; print $exp2;

Perl MCQs

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

package Exp1;

our $exp2;

$exp2 = 45;

package Exp2;

our $exp2 = 85;

print $exp2;

our $exp2;

print $exp2;


Answer

Correct Answer:

8585 

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