jcassie420 has asked for the wisdom of the Perl Monks concerning the following question:
Also, i would like to offer more than just two options.I have searched many tutorials searching for an awnser and havn't found one so your help is greatly appreciated...sub more { print "more()\n" } sub fallover { print "fallover()\n" } print "Welcome to johns fun house\n"; print " : "; my $command=<>; chomp $command; if ($command eq "fun") { more; } if ($command eq "laugh") { fallover; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: New and Stumped
by kyle (Abbot) on Feb 11, 2008 at 04:38 UTC | |
Re: Stumped UPDATED!?!?!
by ysth (Canon) on Feb 11, 2008 at 05:43 UTC | |
by Thelonius (Priest) on Feb 11, 2008 at 05:45 UTC | |
by chromatic (Archbishop) on Feb 11, 2008 at 06:44 UTC | |
by ysth (Canon) on Feb 11, 2008 at 08:59 UTC | |
by chromatic (Archbishop) on Feb 11, 2008 at 18:28 UTC | |
by Thelonius (Priest) on Feb 11, 2008 at 08:34 UTC | |
Re: New and Stumped
by Anonymous Monk on Feb 11, 2008 at 04:28 UTC |