I was wondering if anyone had ever used a perl script with gcc. I was thinking that it might be nice to be able to use the script to invoke the compiler with the optiions I wanted already stored in there. Like ./perlscript my.c so I wouldn't have to type it all out every time or run to a gui everytime.
You could, but it might be better to keep the build and execution phase separate. I always prefer to use a makefile for builds and keep a simple script for the purpose of execution.
The gimp uses one for their builds, which creates a Makefile. So you run perl Makefile.pl and then type make.