Goto statement with label : goto « Statement « Perl






Goto statement with label

  

INPUT: $line = <>;
if ($line !~ /exit/) {
   print "Try again\n"; 
   goto INPUT
}

   
    
  








Related examples in the same category

1.Using the goto statement.