You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Jaak <va...@hot.ee> on 2002/10/12 09:41:15 UTC

next if

Hi!

I'm using...

[- @bar = ('a', 'b', 'c'); -]
[$ foreach $foo (@bar) $]
  [- next if ($foo eq 'c'); -]
  [+ $foo +]
[$ endforeach $]

But "next if" is not working.  
What am I doing wrong?

Embperl version is 2.0b8.

Thanks in advance.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Re: next if

Posted by Gerald Richter <ri...@ecos.de>.
Hi!

>I'm using...
>
>[- @bar = ('a', 'b', 'c'); -]
>[$ foreach $foo (@bar) $]

Must be

  [* next if ($foo eq 'c'); *]

>  [+ $foo +]
>[$ endforeach $]

The current cvs version also supports [$next$], [$last$] and [$redo$]

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org