🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.perl
Article #947

Re: while(){ break; }

#947
From: Pawel Gajda
Date: Tue, 03 Feb 1998 10:43
18 lines
849 bytes
Krzysztof Murkowski wrote:
> 
> Czesc,
> 
> czy w Perl'u jest mozliowsc przerywania petli inaczej niz przez label'e,
> czyli cos w stylu:
> 
> while( <plik> )
> {
>    if( $found==1 )
>    {
>       break;
>    }
> }
> 
Rolę break w perlu spełnia last, efekt ten sam. 

Pawel
Technical Details
Message-ID: <34D6F4D3.44E1E363@obop.com.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.nask.pl!lublin.pl!not-for-mail
References: <34D6DEAD.5808@ml.put.poznan.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!news.nask.pl!lublin.pl!not-for-mail
From: Pawel Gajda <pawelg@obop.com.pl>
Newsgroups: pl.comp.lang.perl
Subject: Re: while(){ break; }
Date: Tue, 03 Feb 1998 11:43:31 +0100
Organization: OBOP
Lines: 18
Message-ID: <34D6F4D3.44E1E363@obop.com.pl>
References: <34D6DEAD.5808@ml.put.poznan.pl>
NNTP-Posting-Host: hq.obop.com.pl
Mime-Version: 1.0
X-Mailer: Mozilla 4.04 [en] (X11; I; Linux 2.0.32 i586)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit