Re: Running a Perl script from another Perl script



Bob MacBob wrote:
select the correct files to be processed, but I'm not sure how to pass each
file over to parser.pl. I also need it to wait until parser.pl has finished
processing a file before it passes it another file to process.

1) Post to comp.lang.perl.misc instead of this group (comp.lang.perl).

2a) Use system() for one file at a time.

	system './parser.pl',$_ foreach @files;

2b) Use system() for all files at once (assuming that parser.pl is
    written to handle multiple arguments in @ARGV).

	system './parser.pl,@files;


-Joe .