in reply to PERL for tool and testing automation

I've never used Modelsim so cannot comment on that side. However, you can use Perl to test just about anything. Recently I wrote a Basic Testing Tutorial which will hopefully give you a very gentle introduction to testing with Perl. There are links at the end of the tutorial to other resources on the topic too.