Is there an easy way to convert a Perl Script to a PHP Script?