I believe that there are some services on the net which let you sell your own scripts and let the customer download them. You've got some dedicated to photographs, scripts, self-made music etc.
The only thing is... I don't know the address of such a company anymore. You might want to check out google.com or visit cgi-resources.com and try to find out how others are doing it.
good luck !
------------------
CobaltWeb - High Volume Hosting -
$0.70-$0.61 per GB - Plans from $13.99 per Month - No Setup Fee
---The End of Free Hosting---