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 program do: foreach (reverse 1..10) { print; }
What does cdup () do in FTP?
Perl programs have this filehandle that is automatically opened:
Perl has a 'goto' command.
How can you install a module?
In Perl, which option is used for ending a Pod block?
Which statement is/are correct about Perl Pod processors? i) All three well-known newline formats: CR, LF, and CRL must be recognized by the Pod parsers. ii) Input lines of any length must be accepted by the Pod parsers.
Which Perl command will print the output, 175?
Output of the Perl program? use strict; my @x = ('Red', 'Blue', 'Black'); print `@x = ` . '@x\n'; my ($Mary, $Lisa, $Lara)= @x; print '$Mary $Lisa $Lara\n'; my ($here, $there)= @x; print '$here $there\n'; my ($this) = @x; print '$this\n'; my $this = @x; print '$this\n'; my ($a, $b, $c, $d, $e)= ('a', 'b', 'c', 'd', 'e'); print '[$a] [$b] [$c] [$d] [$e]\n'; ($a, $b, $c, $d, $e)= @x; print '[$a] [$b] [$c] [$d] [$e]\n'; my $var_a = 'Monday'; my $var_b = 'Friday'; ($var_a, $var_b)= ($var_b, $var_a); print '$var_a $var_b\n';
Which is the correct syntax of a subroutine that makes a positional parameter, say 'right', optional? (Assume the name of the subroutine as example, and left and right as the positional parameters.)