|
INTERVIEW QUESTIONS
PROGRAMMING LANGUAGES
PERL
DETAILS
Question: What are the different forms of goto in perl? Explain?
Answer: The three forms of goto are as follows. They are (i) Goto label (ii) Goto name (iii) Goto expr The first form, goto LABEL, transfers execution to the statement labeled LABEL. The second form, goto EXPR, expects EXPR to evaluate to a label. The last form goto &name is used with subroutines. This goto statement is used only when there is a necessity as it can create havoc in a program
|
|
|
Category |
Perl Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7421 users |
Added on |
9/14/2014 |
Views |
70913 |
Rate it! |
|
|
Question:
What are the different forms of goto in perl? Explain?
Answer:
The three forms of goto are as follows. They are (i) Goto label (ii) Goto name (iii) Goto expr The first form, goto LABEL, transfers execution to the statement labeled LABEL. The second form, goto EXPR, expects EXPR to evaluate to a label. The last form goto &name is used with subroutines. This goto statement is used only when there is a necessity as it can create havoc in a program Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
What is a short circuit operator?
|
View Answer
|
|
Which has the highest precedence, List or Terms? Explain?
|
View Answer
|
|
What are the different types of perl operators?
|
View Answer
|
|
What is meant by splicing arrays explain in context of list and scalar.
|
View Answer
|
|
How do you work with array slices?
|
View Answer
|
|
What are the three ways to empty an array?
|
View Answer
|
|
What exactly is grooving and shortening of the array?
|
View Answer
|
|
How to use the command shift?
|
View Answer
|
|
Is there any way to add two arrays together?
|
View Answer
|
|
Explain about Typeglobs?
|
View Answer
|
|
How does a “grep” function perform?
|
View Answer
|
|
Explain about an ivalue?
|
View Answer
|
|
Name all the prefix dereferencer in perl?
|
View Answer
|
|
Explain about lists?
|
View Answer
|
|
What are scalar variables?
|
View Answer
|
|
What are the two different types of data perl handles?
|
View Answer
|
|
How do you give functions private variables that retain their values between calls?
|
View Answer
|
|
How many ways can we express string in Perl?
|
View Answer
|
|
What value is returned by a lone return; statement?
|
View Answer
|
|
What does new $cur->{LINK} do?
|
View Answer
|