Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Please help...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 8 Topic 11052 of 11532
Post > Topic >>

Re: Please help critcize and shorten my sub code

by Peter@[EMAIL PROTECTED] (Peter Scott) May 11, 2008 at 05:56 AM

On Sun, 11 May 2008 02:05:06 +0200, Jenda Krynicky wrote:
> You do not need the label unless you need to jump out of some other 
> loop than the innermost. In this case there are no nested loops so it 
> would probably be better to skip the label.

While I personally program the way you suggest, take note that "Perl Best
Practices" says that loops that are explicitly exited should be labelled
in all cases (http://www.oreilly.com/catalog/9780596001735/toc.html),
so
we should not criticize people for following the practice.

-- 
Peter Scott
http://www.perlmedic.com/
http://www.perldebugged.com/
 




 8 Posts in Topic:
Please help critcize and shorten my sub code
rich.japh@[EMAIL PROTECTE  2008-05-10 19:21:05 
Re: Please help critcize and shorten my sub code
Jenda@[EMAIL PROTECTED]   2008-05-11 02:05:06 
Re: Please help critcize and shorten my sub code
rich.japh@[EMAIL PROTECTE  2008-05-10 20:20:13 
Re: Please help critcize and shorten my sub code
Jenda@[EMAIL PROTECTED]   2008-05-11 03:02:04 
Re: Please help critcize and shorten my sub code
rich.japh@[EMAIL PROTECTE  2008-05-10 23:03:58 
Re: Please help critcize and shorten my sub code
Peter@[EMAIL PROTECTED]   2008-05-11 05:56:15 
Re: Please help critcize and shorten my sub code
Jenda@[EMAIL PROTECTED]   2008-05-11 15:44:09 
Re: Please help critcize and shorten my sub code
rob.dixon@[EMAIL PROTECTE  2008-05-11 20:57:56 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 6:22:09 CDT 2008.