Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: any mechanism to go to the end of a loop but do not exit the loop

by fishy (Friar)
on Apr 18, 2014 at 17:55 UTC ( [id://1082795]=note: print w/replies, xml ) Need Help??


in reply to any mechanism to go to the end of a loop but do not exit the loop

or maybe this:
my $r = "ju"; while (1) { print uc $r if $r and $r ne "ju"; # do some processing $r and next; # I'm now at the end of the loop print uc "hacker", "\n"; # adding missing word # WARNING: uncomment the following line or push the button #not $r and last; } continue { $r = <DATA>; } __DATA__ Just Another Perl
  • Comment on Re: any mechanism to go to the end of a loop but do not exit the loop
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-24 07:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found