I agree,

        I changed my code to avoid using the goto.  What I didn't include in
my code segment is more if and while statements that would not make it drop
out.  I wrapped the whiles with if statements and a condition variable to
prevent too much excess processing..

Thanks!
-Tim

-----Original Message-----
From: Ewen, Ed [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 02, 2000 11:25 AM
To: Perl-Win32-Users Mailing List
Subject: RE: proper format for a label


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:
[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