Whitespace Note
- This works too:
if ($food eq 'apples'){print
print "Hey, we've got apples!\n";
}else { print "Ew, no thanks.\n"; }
- ...but please don't.
- (You won't get hired.)
| CPU: Perl, Fall 2005 | Perl, Week 2: Arrays, Hashes, Control Structures | #14 |
if ($food eq 'apples'){print
print "Hey, we've got apples!\n";
}else { print "Ew, no thanks.\n"; }
| Copyright © 2005 Ian Langworth |