![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Mar 2005
Location: USA
Posts: 60
Rep Power: 4
![]() |
Cant call c++ program in cgi script. HELP!
I'm trying to make a cgi script using perl to call a c++ program. I have all my programs in the same directory as the cgi script. This is part of the script that I have problem with:
if($pairs[2] eq "language=Cpp" && $pairs[3] eq "datatype=ID"){
$pairs[3]=~/.+=(\w+)/;
my $ID=$1;
$pairs[4]=~/.+=(\d+)/;
my $studentID=$1;
@getC=`./main.exe $ID $studentID`; #this is where I think the program fails
} |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Mar 2005
Location: USA
Posts: 60
Rep Power: 4
![]() |
I got it! wooohooo, i had to use the 'my' thingy. Thx for looking everybody
. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|