What will be printed by the code below?
my $val = bless {}, 'MyClass';
print ref($val);
true
HASH
object reference
1
MyClass
Correct Answer:
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Perl Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Perl MCQ Questions
What will be printed by the code below? my $val = {}; print ref($val);
In Perl 5.26.1, what is the default value of the debugging configurable option, windowSize?
Output of the Perl command? print v102.101.111;
Which Perl debugging commands is used for displaying all the commands that are longer than one character?
Which Perl function returns the casefolded version of an expression?
What does chop do in PERL?
What will be the @arr value after executing: my @arr = grep { $_ > 0 } map { $_ * $_ } (1, -1, 2, -2);
What does Perl -T do?
How to create a super class object?
Which takes care of garbage collection?