What is the purpose of goto expr statement?



What is the purpose of goto expr statement?..

Answer / Rakhi Kumari

The 'goto expr' statement in Perl transfers control directly to a labeled statement. It is generally considered harmful due to making code harder to read and understand, as it can lead to spaghetti code.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

How do I generate a list of all .html files in a directory?

1 Answers  


Write the program to process a list of numbers.

1 Answers  


What value is returned by a lone `return;’ statement?

1 Answers  


Can inheritance be used in perl?

1 Answers  


How do I send e-mail from a Perl/CGI program on a Unix system?

1 Answers  


Write an example explaining the use of symbol tables.

1 Answers  


How do you find the length of an array?

1 Answers  


what is the procedure to define a user define module in your perl application?

2 Answers   IBM,


You want to add two arrays together. How would you do that?

1 Answers  


What is Perl?

1 Answers  


Explain the arguments for perl interpreter.

1 Answers  


What are the different string manipulation operators in perl?

1 Answers  


Categories