The Perl FAQ has an entry titled How can I convert my shell script to Perl? - easily found via Google ...
In reply to Re: Perl converters by Corion in thread Perl converters by Wyman G