467,146 Members | 1,024 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

break in perl

How to come forcefully come out of a loop,but not from the program,
like we use break statement in c. Is there any predefined function like break in perl?

May 28 '08 #1
  • viewed: 24829
2 Replies
Expert 256MB
Hi pavan,

'last' works like break in C. To give you a brief overview of control statements:
last - come out of the statement block
next - terminate current iteration and continue with next iteration(used in loops)
continue - continue with the next block
exit - exit the program/script

May 28 '08 #2
If you want it quickly:
Jul 8 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Jeremy Morton | last post: by
25 posts views Thread by chunhui_true | last post: by
reply views Thread by Kirt Loki Dankmyer | last post: by
1 post views Thread by werwer | last post: by
13 posts views Thread by dm1608 | last post: by
26 posts views Thread by Alexander Korsunsky | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.