in reply to Re^2: gawk to perl
in thread gawk to perl

different versions of gawk behave differently

I think you found the reason why it is difficult to write a gawk to perl converter.

My best suggestion is to use a2p and then hand-code Perl where you get the errors. To be honest converted code is rarely readable and often inefficient so Corion's suggestion might be better in the long term.