in reply to Re: Using UNIX commands inside Perl scripts, with Perl variables
in thread Using UNIX commands inside Perl scripts, with Perl variables

this may also work... (very little difference from above)
system("cp","x.txt","$a_log.txt") && die("$!\n");

if you "use strict" then you do need to declare $a somewhere in the file before you use it. Somebody else said that $a is a special variable so try to use something more descriptive.
  • Comment on Re: Re: Using UNIX commands inside Perl scripts, with Perl variables
  • Download Code