You have not really provided enough detailed information for anyone to be of much help. I assume that you take the input from the user and put it in file.c. If so, are you sure your file.c file is being created and filled properly? Did you add error checking to the system() command and then check the error log for any useful error information? If the system() command is successful, did you check to see if a.out exists (that should be the file created by gcc, IIRC).
When posting to the forum, you need to provide more information about what you have tried, and most importantly, what isn't working. Saying 'but it never works' doesn't tell us nearly enough to help out. We are not psychics :)
In reply to Re: How to use system command in perl script?
by saskaqueer
in thread How to use system command in perl script?
by littlefishr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |