CPU: Perl, Fall 2005 Perl, Week 2: Arrays, Hashes, Control Structures #18

Try it

$drinkie = <STDIN>;
chomp($drinkie);
if ( $drinkie eq 'gin' ) {
    print "I need tonic!\n";
}
Copyright © 2005 Ian Langworth