MCQs > IT & Programming > Perl > What will be the output of the following Perl program? #!perl -l 'ooooos' =~ / (?: o | (?{print 'Greetings'}) (?=(os)) )* /x; print $&; print $1;

Perl MCQs

What will be the output of the following Perl program?

#!perl -l

   "ooooos" =~ /

      (?:

            o

            |

          (?{print "Greetings"})

 

          (?=(os))

      )*

    /x;

   print $&;

   print $1;


Answer

Correct Answer:

Greetings

Ooooo 


Explanation:

Note: This question has more than 1 correct answers

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