Re: Please help critcize and shorten my sub code
- From: Peter@xxxxxxxx (Peter Scott)
- Date: Sun, 11 May 2008 05:56:15 -0700
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/
.
- Follow-Ups:
- Re: Please help critcize and shorten my sub code
- From: Jenda Krynicky
- Re: Please help critcize and shorten my sub code
- References:
- Please help critcize and shorten my sub code
- From: Richard Lee
- Re: Please help critcize and shorten my sub code
- From: Jenda Krynicky
- Please help critcize and shorten my sub code
- Prev by Date: Re: Text formatting issues
- Next by Date: Re: Text formatting issues
- Previous by thread: Re: Please help critcize and shorten my sub code
- Next by thread: Re: Please help critcize and shorten my sub code
- Index(es):
Relevant Pages
|