TOP: my $num = ; if( $num != 10 and $num != 0 ) #ok, a horrible condition { goto TOP; } #rest of code #### my $input; while( $input != "good" ) { print "Please enter number:\n"; $input = ; } #rest of code