I tried for (grep defined($_), (sort keys %db)[-100 .. -1]) { like someone suggested and instead of printing 100 messages that don't change, it doesn't print anything.
Are there any modules that will make hashes use insertion order that comes with the Perl package? Or would I have to go out and install one?
In reply to Re: Re: printing last 100 keys from hash
by Anonymous Monk
in thread printing last 100 keys from hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |