harish, I have worked to convert and adapt a lot of programs from one language to another, and the best advice I can give you is to forget about doing a translation. Different languages often "think" in different ways, and Perl vs. VB is a perfect example of this. VB is by necessity full of hacks, it has screwed up structures and so forth.
Rather than trying to do a line-by-line conversion to Perl, start from scratch. In the long run, you will thank yourself (especially for small programs like this one).
LAI
__END__