I’ve used txt in this example as it is easier to debug check the output - i've actually use binmode in my code (probably deleted it while forming my request with the rest of the comments).
Thanks for your reply I'll play around with it - the problem is that I'am a newbie to perl and still have a pretty poor vocabulary (really hope to improve it in the future and the only way to archive this is to practice and ask questions :)
Thanks again,