in reply to Re: help with counters in perl
in thread help with counters in perl

Ok, I have narrowed it down to the array element is picking up the array Budweiser[1] and MasterCard [3]. I use the -w at the Command Prompt and it says;

<CODE> Vote for your favorite Super Bowl commercial:
Budweiser 1
FedEx 0
MasterCard 1
Pepsi 0

But rec file shows this:

<CODE> None,2 <CODE>

The hash and the rec file are correct. How do I get the commercial count to execute correctly?

Replies are listed 'Best First'.
Re^3: help with counters in perl
by TheStudent (Scribe) on May 17, 2005 at 12:44 UTC
    The tags are < code > and < /code >, not < CODE > ... < CODE >
    Also, if you had the tags correct, then the < strong > ... < /strong > tags would not have worked within the block.

    Update: Have you tried adding the print statements I suggested in the FP?