Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can a Macro accept PERL system() variables?

Status
Not open for further replies.

rxsid

Programmer
Jul 9, 2002
57
US
Hi all,

I currently have a PERL script that calls a MS Word macro via system(), the macro does it's thing and returns to the PERL script to finish.

I would like to know how I could pass to the MS Word macro some constants from the PERL script. This is what I have on the PERL side:
(all those scalars are actually constants within the PERL script)

@args = ($vbmacro, $file1, $file2, $file1.".txt", $file2.".txt", $file1.".doc", $file2.".doc", $source, $dest);
system(@args) == 0 or die "system @args failed: $?";

My question is...how do I get the macro to "accept" those passed arguments? (how can I know if the macro recognizes and can use those arguments)??

Thanks in advance!

Gary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top