If you are new to Perl I suggest reading some of the many fine Tutorials the site offers. This answer to this question, and may more can be found within these Tutorials :D
Hope this helps,
Cheers
Martin
Comment on Re: How do I read data passed to perl script