Re: How to start some file as Perl script argument?
- From: Ian Wilson <scobloke2@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 12:13:50 +0000
max wrote:
How to start some file as Perl script argument?
Start with perl script + argument
Eg.
File is someexcel.xls
How to start it as
perlscript.pl someexcel.xls
This seems to be a self answering question (SAQ).
You can run a perl script by typing the command
perlscript.pl someexcel.xls
If Perl isn't installed in the normal way you might need to prefix the command with the name of the perl interpreter.
perl perlscript.pl someexcel.xls
If your path doesn't include the directory containing your perl interpreter then you may need to use the full pathname of the perl interpreter
"c:\Program Files\perl\perl" perlscript.pl someexcel.xls
Your path is almost certainly different.
I have more *.xls file in work folder.
If your perl script is written to expect multiple files then you can probably just do
perlscript.pl *.xls
Otherwise you'll have to write a shell script or command to invoke the Perl script for each file.
.
- References:
- Prev by Date: Re: HTML:Parser how to remove "//<![CDATA[ ... //]]>" ?
- Next by Date: Re: How to start some file as Perl script argument?
- Previous by thread: How to start some file as Perl script argument?
- Next by thread: Re: How to start some file as Perl script argument?
- Index(es):
Relevant Pages
|