Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: phranque
Welcome to WebmasterWorld.
One of our moderators, Xoc, put together a 404 handler in ASP. He wrote about it in this thread [webmasterworld.com]. Hope this is what you are looking for.
Failing that, perhaps some of our perl literate friends can help out.