Not a perl question, but....
Well, there was this same question a few days ago, you could try looking around, but anyway, before you can get an answer about why your http server don't run cgi scripts we should need to know,
Which server are you running.
Which error are you getting ?
What have you configured so far
Get that info back and then we can help you.
Dreams they just disapear into the shadows,
then they become true....