As for your actual problem, perl is reading $a_log, as a variable, instead of just using $a. You can fix the problem be explictly saying that "_log" isn't part of the variable by using ${a} instead of $a.
You appear to not being using strict. It's a very good idea to do so.
In reply to Re: Using UNIX commands inside Perl scripts, with Perl variables
by wog
in thread Using UNIX commands inside Perl scripts, with Perl variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |