This is the third time you've asked your question. You've gotten the answer, but you seem not to be understanding it. Might I suggest you post the code from both scripts so we can see what you're trying to do in context?
You seem to think you can just call awk from your Perl script, and that isn't going to work.