On Tue, 2 May 2000, Flynn, Timothy J wrote:
> Hi All!
>
> I am using goto for the first time and I am having trouble with the
> label format. I have checked perldoc -f goto and perldoc -q label with no
> success. Here is an example of what I am doing..
>
>
>
>
> if (some condition) {
>
> if (some condition) {
>
> if (some case true) {
>
> goto ENDDISP;
> }
> }
> }
>
> ENDDISP: (note the colon)
>
> what is wrong? When I comment out ENDDISP: it runs. # although then the
> goto is meaningless. What format does this label ENDDISP: have to be in?
>
I'm wondering why you are using it now. Based in your example, it is
meaningless even with the label defined. No matter which conditions are
true or false the logic path always ends up at the label. The format of
the label and the syntax you used for the goto are correct.
When you comment out the label, it works OK? Hmmm. I would have thought
the goto operator would have syntaxed with an undefined label.
**** [EMAIL PROTECTED] <Carl Jolley>
**** All opinions are my own and not necessarily those of my employer ****
---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
[EMAIL PROTECTED]
For non-automated Mailing List support, send email to
[EMAIL PROTECTED]