in reply to How to call a perl prg with options from within another ?

Hi Bucchi,

Your last question (Call one Perl Script from another) was very similar to this one.
Once again, is this on Windows or Unix. On Win32 you could use Win32::Process

Code from Scrat:
#!/usr/bin/perl use warnings; use strict; use Win32; use Win32::Process; my $ProcessObj; Win32::Process::Create($ProcessObj, "C:\\perl\\bin\\perl.exe", "perl c:\\script2.pl", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); exit; sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); }

Update:Of course you would parse the options to the second program at the "perl c:\\script2.pl" and in that you could use something like Getopt