77

Flow Control
WHILE Loop

  • Use a WHILE loop to form an Test-than-Loop construct

  • Used most often for loops with a non-numeric-range test
      while ( $line = <STDIN> )
      {
      	print "ECHO: $line";
      }
      
  • Want an infinite loop?
      while ( 1 )
      {
      	print "Infinite loop!\n";
      }