in reply to Runing Command

The `` quotes interpoloates variables. Specificly, the "$1" bit in the awk part of your pipeline is probably being interpreted as an empty string (unless you've done some capturing matches in the Perl code, which I'm guessing you haven't). You'll need to escape that part ("\$1").