# Variables alsway hold the full path to the file mentioned
my $ccupdate_db = "/var/www/cgi-bin/ccupdate_db";
my $excel_file = "$uploadedfile"; #i.e. "/var/www/cgi-bin/upload/test.xls"
my @args = ($ccupdate_db, "-ExcelFile $excel_file", "-q");
my $exit_code = system(@args);
print "Exit Code: ".$exit_code/256."
";
print "Error: ".$!:"
";
print "ARGS: ";
foreach my $val (@args)
{
print $val." ";
}