in reply to Changing VB to Perl

Super Search is your friend. Try this serach for example: ?node_id=3989;HIT=vb%20Perl;re=N;Wi;M.


Perl's payment curve coincides with its learning curve.

Replies are listed 'Best First'.
Re^2: Changing VB to Perl
by ricuk (Initiate) on Nov 30, 2008 at 13:12 UTC
    Thanks a lot foe your advice. I’ve now managed to get one of the vb lines changed and working: Selection.Rows.ConvertToText (is now) $word -> Selection->Rows->ConvertToText;. But I’m still struggling with: Separator:=wdSeparateByCommas, NestedTables:= _True. Can you help? What do I do with the :=?

      := denotes named arguments in Visual Basic. See Win32::OLE for how to handle named arguments with it.

      When translating from Visual Basic to Perl, it behooves you to know at least a bit about both languages. I'm confident that you can find resources for the VB syntax in your local library or even online.