Shell & perl scripts don't need to be compiled. Here's a couple quick examples of how to do them.
Edit "somescript.sh" and make it look like this:
echo "yo! bush sucks"
chmod +x somescript.sh
The "chmod" makes it executable (you could alternatively run it like "sh somescript.sh").
Same story for perl, but the first line is different. Edit someperl.pl:
print "ashcroft sucks too"
chmod +x someperl.pl
You don't need the ".sh" or the ".pl" at the end--it could read ".exe" ".whatever"--linux doesn't really care about extensions.