in reply to Re^4: incrementing array variables in a text file?
in thread incrementing array variables in a text file?

It won't work if the vote.txt file already has extra newlines, try starting with a blank vote.txt file.
If it still doesn't work try this instead of chomp
s/[\r\n]//g;
poj

Replies are listed 'Best First'.
Re^6: incrementing array variables in a text file?
by friar tux (Novice) on May 02, 2011 at 16:51 UTC

    It worked!!! removing chomp and putting that in fixed the problem thank you so much. I am going to have to go look that up so I know how it works but at least now I can start practicing with a working script and I can start polishing it up. thanks for your help