Try it
$drinkie = <STDIN>;
chomp($drinkie);
if ( $drinkie eq 'gin' ) {
print "I need tonic!\n";
}
| CPU: Perl, Fall 2005 | Perl, Week 2: Arrays, Hashes, Control Structures | #18 |
$drinkie = <STDIN>;
chomp($drinkie);
if ( $drinkie eq 'gin' ) {
print "I need tonic!\n";
}
| Copyright © 2005 Ian Langworth |