in reply to qx command -breaking the line
Does the command even work in the first place?
qx(... | awk '{print $3}')
That would be Perl's $3, not awk's $3.