print "Do you want to submit Job A? "; chomp (my $question = ); die "Goodbye\n" unless $question=~ /(yes|y)/i; print "Are You Sure? "; chomp (my $question2= ); die "Goodbye\n" unless $question2 =~ /(yes|y)/i; print "Everything good\n";