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
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
More Perl MCQ Questions