in reply to sending arguements to external program
The argument passing code is right. Are you sure that your program will accept more than one file at a time?
To test your script I used the Unix cat command like this:
#!/usr/bin/perl -w use strict; my @array = ('test.pl', 'b64.pl'); my @output = `cat @array`; print @output;
If your program only accepts one file on the command line then you'll need to do something more like this:
--#!/usr/bin/perl -w use strict; my @array = ('test.pl', 'b64.pl'); my @output; foreach (@array) { push @output, `cat $_`; } print @output;
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: sending arguements to external program
by Anonymous Monk on Nov 09, 2000 at 18:45 UTC | |
by Fastolfe (Vicar) on Nov 09, 2000 at 19:02 UTC |