vivekvp has asked for the wisdom of the Perl Monks concerning the following question:
What would be a good method to code this?Choose 1 of the 3 options: 1=Turkey 2=Steak 3=Apple Choose one:
i.e. $choice=<STDIN>; if ($choice="1") { $choice="Turkey"; } else choice="2"...etx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: STDIN method?
by insensate (Hermit) on Oct 17, 2002 at 20:40 UTC | |
by charnos (Friar) on Oct 17, 2002 at 20:56 UTC | |
|
Re: STDIN method?
by jkahn (Friar) on Oct 17, 2002 at 20:34 UTC | |
|
Re: STDIN method?
by janx (Monk) on Oct 17, 2002 at 20:42 UTC | |
|
Re: STDIN method?
by jjdraco (Scribe) on Oct 17, 2002 at 20:35 UTC | |
|
Re: STDIN method?
by Mr. Muskrat (Canon) on Oct 17, 2002 at 21:38 UTC | |
|
Re: STDIN method?
by Enlil (Parson) on Oct 17, 2002 at 20:40 UTC | |
|
Re: STDIN method?
by tadman (Prior) on Oct 18, 2002 at 07:20 UTC |