in reply to Using awk within system() or open()
Probably because $1 is undef at this point.
"The first rule of Perl club is you don't talk about Perl club."