in reply to How to convert a shell script to Perl?
There's really no simpler way.
Originally posted as a Categorized Answer.