What is the output of the following perl code : !/usr/bin/perlprint - ProProfs
     

What is the output of the following perl code : #!/usr/bin/perlprint content-type: text/html \\;# SET A VARIABLE$count = 0;while ($count <= 7) { if ($count == 4) { print Skip Four!; next; } # PRINT THE COUNTER print $count.;} continue { $count++; };print Loop Finished!;



A. 123Skip Four567Loop Finished!
B. 1234567Loop Finished!
C. 123Skip Four567
D. Error

This question is part of Perl Scripts assessment

+ AnswerRequest Answer
...

2 Answers

John Adney

John Adney

Answered on Jun 15, 2017

The output will be

0123Skip Four!567Loop Finished!

why 10 words?

John Smith

John Smith

Answered on Jun 15, 2017

1 2 3 Skip Four 5 6 7 Loop Finished!

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.