in reply to Convert from awk to perl

Have you tried the a2p program that comes with perl?