#!/usr/bin/perl use warnings; use strict; print "what is your name: "; chomp( my $name = ); print "hello $name\n"; print "select letter\n"; chomp( my $select = ); if ($select eq 'a'){ print "good choice\n"; } else { print "bad choice\n"; } #### what is your name: steve hello steve select letter a good choice