my $cmd = "$^X foo.pl arg1" ; ## $^X is the path to perl(.exe) interpreter. open (CMDLOG,"| $cmd") ; close (CMDLOG) ;