in reply to calling awk one liner from perl

on awk and converting it to perl automatically

After looking at awk a second time, I don't think I'd ever use it :)

I'd stick with perl, see