What will be the output of the following Perl code snippet?
@exp = (4, 7, sort 6, 5);
print @exp;
56
4567
4756
The code will throw an error.
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
In Perl, which option is used for denoting entire arrays?
Which is the correct features of Perl?
Output of the Perl program? use Scalar::Util 'blessed'; my $var1 = {}; my $var2 = $var1; bless $var1, 'Class'; print blessed( $var2 ) // 'happy blessed'; $var2 = 'Something else'; print blessed( $var2 ) // 'not happy blessed'; '>
In relation to perltie, a class implementing tied scalar should define which method? i) TIESCALAR ii) FETCH iii) STORE
What will be the output of the Perl code? $_ = 'Mark is to the left of red window.'; if ( /\b(red)\s+(\w+)/i ) { print '$2 follows $1.\n'; }
Which regexe matche between 1 to 4 ab's followed by a tab and an integer number?
How do I lock a file?
my @b=(1,2,3);my $a=@b;What will be the output of $a?
To disable a database error, what parameter is set in the database initialization?
Which is not used for assigning a value to a variable?