bluethundr has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w @names = qw/fred barney wilma betty/; @in; $count = 0; print "\n\n\n"; # just some dumb formatting while ($in[$count] !~ /q/i) { print "\nPlease enter a number: "; chomp($in[$count]); count++; } foreach $x (@in) { print $names[$x]; print "\n"; } print "\n\n\ndone.\n\n\n"; # just more formatting and so I know it's + "done"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Befuddled by The Llama
by davidj (Priest) on May 30, 2004 at 22:08 UTC | |
by weierophinney (Pilgrim) on Jun 01, 2004 at 13:17 UTC | |
Re: Befuddled by The Llama
by parv (Parson) on May 30, 2004 at 22:34 UTC | |
Re: Befuddled by The Llama
by reTard (Sexton) on May 30, 2004 at 22:31 UTC | |
by robot_tourist (Hermit) on Jun 01, 2004 at 08:53 UTC | |
Re: Befuddled by The Llama
by TomDLux (Vicar) on May 30, 2004 at 22:53 UTC | |
Re: Befuddled by The Llama
by Anonymous Monk on May 30, 2004 at 23:09 UTC | |
by TomDLux (Vicar) on May 31, 2004 at 00:35 UTC | |
by parv (Parson) on May 31, 2004 at 00:40 UTC | |
Re: Befuddled by The Llama
by Seumas (Curate) on Jun 01, 2004 at 00:43 UTC | |
by mrpeabody (Friar) on Jun 01, 2004 at 01:51 UTC | |
Re: Befuddled by The Llama
by robot_tourist (Hermit) on Jun 01, 2004 at 07:28 UTC | |
by weierophinney (Pilgrim) on Jun 01, 2004 at 13:19 UTC | |
by robot_tourist (Hermit) on Jun 01, 2004 at 14:16 UTC | |
by peters (Sexton) on Jun 01, 2004 at 15:21 UTC | |
by robot_tourist (Hermit) on Jun 01, 2004 at 15:31 UTC | |
|