Is there a good program for writing Perl/CGI scripts? OR do scripts have to be manually written in text?

I'm trying to find a perl writing program (software) that keeps things simple but is up to date with the current internet technologies. Affordable would be nice too.

Thanks for answering and any suggestions! ) Tommy