I'm writing a little perl program that calls a c program. I want to pass a variable from perl into the c program. I tried it like this(in a very simplified example):
@data=`Cprog.exe number`; #number is the varaible sent to C
int main(int argc, char* argv)
cout<<"Number is equal to: "<<argv<<endl;
When I print out data in the perl program, it outputs that funny y character with two dots over it. None of my C books have anything on main's parameters, so I can't find help there. Any ideas?