$grep_date won't interpolate in the singly-quoting q() construct. When you change to a double-quoting construct, be sure to escape the dollar sign in awk's $9 argument.
Improve your skills with Modern Perl: the free book.
In reply to Re: how to use perl variable in system command to run on unix
by chromatic
in thread how to use perl variable in system command to run on unix
by tousifp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |