What kind of invalid data? - You have to make sure that invalid data doesn't get into the database. There's no point in having a database otherwise.
I didn't express myself very well ... meant more like corruption-checking (shouldn't happen but happend once afaik), etc.
The language itself isn't really important. You have to be comfortable with your choice, that's all.
True ... still I'd like to practice Perl a bit :-)