Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: how to stop the file

by screamingeagle (Curate)
on Feb 05, 2002 at 08:11 UTC ( #143379=note: print w/ replies, xml ) Need Help??


in reply to how to stop the file

you could use the last function , which immediately breaks out of the loop. Keep in mind that (Quoting from the documentation) "last cannot be used to exit a block which returns a value such as eval {}, sub {} or do {}, and should not be used to exit a grep() or map() operation"


Comment on Re: how to stop the file
Re: Re: how to stop the file
by metadoktor (Hermit) on Feb 05, 2002 at 08:13 UTC
    He uses last in his example.

    metadoktor

    "The doktor is in."

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-07 08:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls