in reply to Replacing SQL with perl

I've been dreaming about having (embedded) perl in my query language. Wouldn't it be nice if the db-engine supported perl regular expressions and functions?

Or to have stored procedures in perl? For queries SQL is good, but for whiles, ifs and declares, perl's a lot better!

Maybe this doesn't add anything you can't do by calling SQL from perl, but if you have to call the DB from, say, java. And for the next generation of query languages, I'm sure that perl would have some features to lend.

What do you think, my brothers?

Yours,
Poet (first-time poster ;-)