Re: How to start some file as Perl script argument?



No! I want start perl script with XLS document as argument.
Start in CMD with typing perl script.pl someexcel.xls is normaly work,
I want star it with click on Excel document, How to do it in Windows OS?


How to start some file as Perl script argument?


What does "start some file" mean when you say it?

You cannot "start" an Excel file because it is not executable.


How to start it as
perlscript.pl someexcel.xls


You run this command line:

perlscript.pl someexcel.xls


If you instead meant that you want to run an external program, such
as Excel, then you should have asked how to run an external program.

The answer given in this FAQ:

perldoc -q external

outlines the three basic ways of running external commands.


--
Tad McClellan SGML consulting
tadmc@xxxxxxxxxxxxxx Perl programming
Fort Worth, Texas


.



Relevant Pages

  • Re: general macro question
    ... How is your external program launching excel? ... you'll have to load the addin ... when the external program launches excel it still doesnt show up. ... the macro menu option - I dont see any macro? ...
    (microsoft.public.excel.misc)
  • Updating worksheet without opening
    ... I have a bar coding program which refers to an Excel workbook as an ODBC ... the worksheet are not updated when the bar coding program accesses the ... Am I correct in thinking the external program is not actually ... (another reason I'm using an Excel sheet as my database) ...
    (microsoft.public.excel.misc)
  • RE: Locking a worksheet during the reading of it
    ... Excel Workbook which will be updated by an external program. ... I did not recommend you do that because Excel works ... as a desktop application which did not works smoothly in the multiple user ...
    (microsoft.public.excel.programming)
  • Re: Can Excel 2007 get external data from an SDF file?
    ... OK, I can see that you can poke data into excel from an external program (or is this a macro), but is it possible to connect directly using an OLE DB connection string? ...
    (microsoft.public.sqlserver.ce)
  • How to time out a forked command but still see output?
    ... If too much time expires, perl script exits, ... redirects all output of external program to some file. ... I also tried something like redirecting CMD to STDOUT but when I do ...
    (comp.lang.perl.misc)