Using the goto statement. : goto « Statement « Perl






Using the goto statement.

 
#!/usr/local/bin/perl 

NEXTLINE: $line = <STDIN>; 
if ($line ne "") { 
   print ($line); 
   goto NEXTLINE; 
} 

   
  








Related examples in the same category

1.Goto statement with label