in reply to Re: Can a Perl Script call another perl script?
in thread Can a Perl Script call another perl script?
FYI: the "-ne" makes perl read the file, and pass each record as "$_" into the code specified, looping until the file is read. Hence, the perl code in the square brackets gets executed for each line of the input file.perl -ne "system qq[perl search.pl -pattern $_ -ignorecase c:\\inetpub +\\wwwroot\\iprt]" mylist.txt
"For every complex problem, there is a simple answer ... and it is wrong." --H.L. Mencken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Can a Perl Script call another perl script?
by chargrill (Parson) on Jan 28, 2006 at 08:39 UTC | |
|
Re^3: Can a Perl Script call another perl script?
by Anonymous Monk on Jan 30, 2006 at 22:11 UTC |