Try it
#!/usr/bin/perl print "Food? "; $food = <STDIN>; chomp $food; print "Number? "; $count = <STDIN>; chomp $count; print "I ate $count gallons of $food\n";
| CPU: Perl, Fall 2005 | Perl, Week 1: Intro to Perl, Scalars | #27 |
#!/usr/bin/perl print "Food? "; $food = <STDIN>; chomp $food; print "Number? "; $count = <STDIN>; chomp $count; print "I ate $count gallons of $food\n";
| Copyright © 2005 Ian Langworth |