in reply to Re^2: incrementing array variables in a text file?
in thread incrementing array variables in a text file?
%hashes are unordered @array's where the keys are strings instead of integers. Learn them. They are the most important part of perl that you should be learning.
I already showed you the code for reading and writing the votes in a %hash data structure to a file.
Also, add use strict; and use warnings; to the beginning of your script, and since this is CGI, CGI::Carp as well.
use CGI ':standard'; use CGI::Carp qw(fatalsToBrowser); use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: incrementing array variables in a text file?
by friar tux (Novice) on Apr 30, 2011 at 23:34 UTC | |
by wind (Priest) on May 01, 2011 at 00:09 UTC |