print "Press to continue, or 'q' to quit: "; my $input = ; exit if $input eq "q\n";