Kurzübersicht der Kontrollstrukturen

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]


expr1 if expr2
expr1 unless expr2
expr1 while expr2
expr1 until expr2
expr1 foreach expr2

if (expr) { stmts }
      $[$ elsif (expr) { stmts } $... ]$
      $[$ else { stmts } $]$
unless (expr) { stmts }
      $[$ else { stmts } $]$

$[$ label $]$ while (expr) { stmts } $[$ continue { stmts } $]$
$[$ label $]$ until (expr) { stmts } $[$ continue { stmts } $]$
$[$ label $]$ for ( $[$ expr $]$ ; $[$ expr $]$ ; $[$ expr $]$ ) { stmts }
$[$ label $]$ foreach $[$ var $]$ ( list ) { stmts }
$[$ label $]$ { stmts } $[$ continue { stmts } $]$

goto $[$ label $]$
last $[$ label $]$
next $[$ label $]$
redo $[$ label $]$

do { stmts } while expr
do { stmts } until expr

Diese Tabelle wurde in etwas geänderter Form aus der Perl-Referenz von Johan Vromans übernommen.

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 1996, 1998, 1999, 2000 Andreas Borchert, in HTML konvertiert am 07.02.2000