|
Answer» In PERL, there are three different forms for goto, they are:
• goto name
• goto label
• goto expr
goto name is USED ALONG with subroutines, it is used only when it is required as it creates destruction in programs. It is the second FORM of label where Execution is transferred to a statement labeled LABEL using goto LABEL. The last label form is goto EXPR which expects EXPR to evaluate label. In Perl, there are three different forms for goto, they are:
• goto name
• goto label
• goto expr
goto name is used along with subroutines, it is used only when it is required as it creates destruction in programs. It is the second form of label where Execution is transferred to a statement labeled LABEL using goto LABEL. The last label form is goto EXPR which expects EXPR to evaluate label.
|