MCQs > IT & Programming > Perl > Output of the Perl program? my $out = 'Apple and Mango'; my $inr = 'Almond and Walnut'; my $ptn ='Apple and Mango'; my $inr = 'Almond and Walnut'; my $ptn = qr/(\S+) and (\S+)/; sub output_n { print qr/(\S+) and (\S+)/; sub output_n { print

Perl MCQs

What will be the output of the following Perl program?

my $out = 'Apple and Mango';

my $inr = 'Almond and Walnut';

my $ptn ='Apple and Mango';

my $inr = 'Almond and Walnut';

my $ptn = qr/(\S+) and (\S+)/;

sub output_n { print qr/(\S+) and (\S+)/;

sub output_n { print

Answer

Correct Answer:

$1 is Apple; $2 is Mango

$1 is Almond; $2 is Walnut

$1 is Apple; $2 is Mango 


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