[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] Push/pop and guranteed order?



-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Thu, December 8, 2005 16:33, Andy Lester wrote:
> Yes. An array is ordered. Hashes are not.

I was thinking as such, but I was running on to few awake brain cells when I asked...

>> If not, is there an easy way to create a FIFO (First In, First Out)
>> array? I don't want to resort to creating a key/value pair (i.e.
>> key/value: 1:A, 2:B, 3:C,...,26:Z) and have to sort on the key.
>
> Are you coming to Perl from having used PHP?

Nah, I'm a perl hack since about '95 or so.  Why do you ask? :)

I've dabbled in PHP, but nothing big.  I like how easy it is to make a simple all-in-one web page for simple forms and such.  I'd like to give Mason and/or mod_perl a try to see if I like it over PHP.

Dan

- - - - -
"Wait for that wisest of all counselors, time." -- Pericles
"I do not fear computers, I fear the lack of them." -- Isaac Asimov
GPG fingerprint:6FFD DB94 7B96 0FD8 EADF 2EE0 B2B0 CC47 4FDE 9B68 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDmbRusrDMR0/em2gRArZdAJ92WX1IFhlDTUT8O9Gn7u94edI19QCgyReB 7sFHsscARyB9K3btUhqBwu0= =3gAV -----END PGP SIGNATURE-----