Exporting Tickets with via Perl Script

Hi guys,

is there anyone who knows exporting tickets via Perl script including CFs, Comments, History and Attachment as well.
Please pay attention that I’m totally new for Perl. I need only export my tickets with all of fields which include all of things. Therefore should I learn from zero HowTo Perl? Or could you write to me step by step.

Additionally it could be great, I’m not sure if it is possible but I wish export the tickets according to my own filter. i.e. Queue = X and CustomField_B =Y etc.

Actually after some search, I found the script which you find on under link. But I could not find any connection row in it. I am very glad to a script which explains my needs.

http://lists.bestpractical.com/pipermail/rt-users/attachments/20130612/0d9c32fc/attachment.pl

Thanks in advance.

Best Regards,
Ahmet