yellowbeard has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl $temp = <STDIN>; if ($temp eq "yo") { print "whats up"; } elsif ($temp eq "not much") { print "cool"; } else ($temp eq "<STDIN>") { print "HUH?"; }
Title edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Code question?
by jasonk (Parson) on Mar 11, 2003 at 23:53 UTC | |
by yellowbeard (Initiate) on Mar 11, 2003 at 23:54 UTC | |
|
Re: Code question?
by zengargoyle (Deacon) on Mar 11, 2003 at 23:55 UTC | |
|
Re: Code question?
by mowgli (Friar) on Mar 12, 2003 at 00:07 UTC | |
|
Re: Code question?
by Cody Pendant (Prior) on Mar 12, 2003 at 00:44 UTC | |
|
Re: Code question?
by nite_man (Deacon) on Mar 12, 2003 at 08:05 UTC |