in reply to Befuddled by The Llama

You have some typos:

You have a missing ")" on the following line:

while ($in[$count] !~ /q/i {
It should be
while ($in[$count] !~ /q/i) {
Second:
chomp($in[$count]";
should be:
chomp($in[$count]);
Third:
print "\n\n\n"done.\n\n\n";
should be:
print "\n\n\ndone.\n\n\n";
And finally:
count++;
should be:
$count++;
Furthermore, you will loop endlessly on:
while ($in[$count] !~ /q/i) {
because nothing in @in has been set.

update: You would have saved a lot of time by "use warnings;". It would have pointed out all the errors :)

davidj

Replies are listed 'Best First'.
Re: Re: Befuddled by The Llama
by weierophinney (Pilgrim) on Jun 01, 2004 at 13:17 UTC
    You would have saved a lot of time by "use warnings;". It would have pointed out all the errors :)

    Interestingly, he did, as he had thrown the '-w' switch to the perl executable. It's curious that he didn't get more warnings... unless the OP didn't give us all of them.