in reply to Re^2: How to work with Arrays of 83,000 values
in thread How to work with Arrays of 83,000 values

"...messages like...." doesn't really cut it. Here are the messages which result from adding strict and warnings to your script and running...

perl -c 1045909.pl Scalar found where operator expected at 1045909.pl line 16, near "$rea +dingbooks$_" (Missing operator before $_?) # ie, Ln beginning '$rdbooks = $read +ingbooks$_;' Scalar found where operator expected at 1045909.pl line 17, near "$rea +dingdate$_" (Missing operator before $_?) Scalar found where operator expected at 1045909.pl line 21, near "$cat +books$_" (Missing operator before $_?) Scalar found where operator expected at 1045909.pl line 22, near "$cat +date$_" (Missing operator before $_?) Global symbol "$readingbooks" requires explicit package name at 104590 +9.pl line 16. syntax error at 1045909.pl line 16, near "$readingbooks$_" Global symbol "$readingdate" requires explicit package name at 1045909 +.pl line 17. syntax error at 1045909.pl line 17, near "$readingdate$_" Global symbol "$catbooks" requires explicit package name at D:\_Perl_\ +PMonks\1045909.pl line 21. syntax error at 1045909.pl line 21, near "$catbooks$_" Global symbol "$catdate" requires explicit package name at D:\_Perl_\P +Monks\1045909.pl line 22. syntax error at 1045909.pl line 22, near "$catdate$_" 1045909.pl had compilation errors.

And... ohmigosh -- strict and warnings + actually reading the messages -- comes to the rescue again.

If I've misconstrued your question or the logic needed to answer it, I offer my apologies to all those electrons which were inconvenienced by the creation of this post.