#!/usr/bin/perl foreach $x (1,2,3,4,5) { print "x: $x\n"; if ($x > 2) { print "break\n"; break; } }
#!/usr/bin/perl $x = "moo"; if ($x == "") { print "Please supply input.\n"; } else { print "You wrote '$x'\n"; }