I agree about not using goto's - they went out with day-glo VW Microbusses.
Apart from that, the code segment you included would fall through with or
without the goto.

                Ed Ewen
                (404) 575-3531
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 


        -----Original Message-----
        From:   Flynn, Timothy J [SMTP:[EMAIL PROTECTED]]
        Sent:   Tuesday, May 02, 2000 11:16 AM
        To:     Perl-Win32-Users Mailing List
        Subject:        proper format for a label

        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?

        Thanks!
        -Tim

        ---
        You are currently subscribed to perl-win32-users as:
[EMAIL PROTECTED]
        To unsubscribe, forward this message to
                 [EMAIL PROTECTED]
        For non-automated Mailing List support, send email to  
                 [EMAIL PROTECTED]

---
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]

Reply via email to