Mahoota has asked for the wisdom of the Perl Monks concerning the following question:
I have created a perl program that asks for the name of an input filename; then an output file; and then reads in these filenames and opens the relevant files using STDIN (performs operations on the data from the infile and writes results to the outfile).
I now need a second program that will run this program (>perl progname), then enter the filenames when prompted at the command line.
I can't seem to get open() to do this, and dont know if there is a way of editing the first program to read in filenames directly from the executable line (>perl progname filename) (then I could simply use system() in the second program..
Any ideas greatfully recieved.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Writing to command line when prompted
by Aristotle (Chancellor) on Jun 28, 2002 at 15:15 UTC | |
Re: Writing to command line when prompted
by sschneid (Deacon) on Jun 28, 2002 at 14:42 UTC | |
Re: Writing to command line when prompted
by robobunny (Friar) on Jun 28, 2002 at 14:40 UTC | |
Re: Writing to command line when prompted
by amphiplex (Monk) on Jun 28, 2002 at 14:42 UTC | |
by amphiplex (Monk) on Jun 28, 2002 at 14:58 UTC |
Back to
Seekers of Perl Wisdom