in reply to Re: Converting Visual Basic Code to PERL
in thread Converting Visual Basic Code to PERL
I wholeheartedly agree with LAI.
When translating spoken language, do you do a direct translation? No. It's a rare occasion when one can run down a sentence with a dual-language dictionary and get a coherent sentence.
Take for example English and Russian. Ignoring the Cyrillic and Latin character differences, both have some similar sounding words, but the grammar and syntax is completely different. Two languages that are more closely related are English and German (or French and Spanish). Same problem there. You can't simply translate, you have to interpret.
First, figure out what you want to do in Perl. Is there any reason Perl is better suited than the already complete VB code? Then, start from scratch in Perl. Don't even look back at your VB. Construct something completely new (and better (always improve your code)) that accomplishes the same task.
John J Reiser