in reply to perl and VB

I sometimes run Perl out of VBA in Excel

To call your Perl routine, you want something like this in your VBA:

ChDir "C:\PerlWork\" a = Shell("command.com /c perl myprog.pl -w")
HTH,
Dennis