Ask a Question

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

+ Answer
...

Request Answers

2 Answers

Adney

Adney

Answered on Jun 15, 2017

The output will be

0123Skip Four!567Loop Finished!

why 10 words?

21centurians1

21centurians1

Answered on Jun 15, 2017

123Skip Four567Loop 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.