I'd recommend merlyn's most excellent sh2perl
/J\
In reply to Re: Converting bash script to perl by gellyfish in thread Converting bash script to perl by mlsrar