A Simple Subroutine
$count = 5;
sub explode {
$count--;
print "KABOOM! You have $count bombs left\n";
}
| CPU: Perl, Fall 2005 | Perl, Week 3: More Arrays, Context, Subroutines, Lexical Variables | #39 |
$count = 5;
sub explode {
$count--;
print "KABOOM! You have $count bombs left\n";
}
| Copyright © 2005 Ian Langworth |