Re: How do I find the key of a specific hash element?

[email protected] (jshock)
Newsgroups perl.beginners,perl.beginners
Organization http://groups.google.com
Message-ID <ecfb7a76-34f2-4c78-ace4-361bd5ce78d3@a70g2000hsh.googlegroups.com>
On May 19, 9:05 pm, [email protected] (Randal L. Schwartz) wrote:

> This seems like it should be an array, not a hash.  Just FYI.

I used a hash because I wanted to loop through them in sequence. I
thought I read somewhere that arrays are not automatically sorted.

I am building a calendar generator as an exercise to help me learn
perl. When it runs, it asks for the year, then determines if it's a
leap year, then generates the calendar. It is supposed to write 365
lines like 2008, JAN 1, TUE. So far it works except I can't seem to
get it to loop thru and write the weekdays.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.