Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: next unless - and then 'until'

by fishbot_v2 (Chaplain)
on Mar 14, 2006 at 12:54 UTC ( [id://536557]=note: print w/replies, xml ) Need Help??


in reply to Re^2: next unless - and then 'until'
in thread next unless - and then 'until'

Yes, and we still have no idea what you are trying to accomplish, nor really enough detail to puzzle out an answer. If you are inside a while, you don't need to goto it. You can either next LABEL to it, or just fall through the bottom of the loop. With no idea what else is in the respective loops, it's extremely hard to be useful.

# use strict, etc... OUTER: while ( 1 ) { # something1 last OUTER if ...something2...; # something3 INNER: while ( my $dir = readdir( $dh ) ) { # something4 next INNER if ...something5...; # something6 } next OUTER if ...something5...; # something7 }

Now, if some of the various somethings don't exist, you can simplify greatly. Fill in the somethings with what you want, try it, and if you are still having problems, post the code, the errors, the input and the expected output.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://536557]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-03-19 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found