Flow Control
- if(something) { something; } elsif(something) { something else; } else { something else else }
- while(something) { #code here }
- for($i=0;$i<10;$i++){ print "$i\n"; }
- foreach $x (@foo) { print "$x\n"; }
- foreach == for, really
Previous:Next