in reply to Looping Database

Sounds like you want to do some SQL:

select * from items where subcategory = "Christmas" order by id desc l +imit 2

Not really a Perl question, but whatever.

--t. alex
but my friends call me T.

psI highly recommend HyperSnapDX. Buy a license!