in reply to The System function and its usage

In addition to what mr_mischief and jettero said, you tricked yourself into believing that @args was doing what you wanted in your foreach/print loop. To see what I mean, add this code:
print @args; print "\n";
This will print out:

/var/www/cgi-bin/ccupdate_db-ExcelFile /var/www/cgi-bin/upload/test.xls-q