http://qs321.pair.com?node_id=220080


in reply to Re: Help with processing command line arguments
in thread Help with processing command line arguments

Depends. If you've got a file association set up with perl scripts (or more correctly put, an extension, such as '.pl'), then a call to perl is not necessary. But in his case, I believe you are correct in a way: I don't think he has a file association set up for the extension he uses for his scripts.

-------------------------------------
eval reverse@{[lreP
=>q{ tsuJ\{qq},' rehtonA'
,q{\}rekcaH },' tnirp']}[1+1+
1,1-1,1+1,1*1,(1+1)*(1+1)];
-------------------------------------
  • Comment on Re: Re: Help with processing command line arguments

Replies are listed 'Best First'.
Re^3: Help with processing command line arguments
by diotalevi (Canon) on Dec 16, 2002 at 00:35 UTC

    Oh but it is, it is! The problem is that the DOS/Windows versions I've listed don't have a command shell powerful enough associate file extensions with an interpreter. Remember - you're restricted to command.com here.


    Fun Fun Fun in the Fluffy Chair

      You can use start to get file-associations from the command line, as in start file.pl 1 2 3. (However, this will launch perl in a sperate process and window.)


      Warning: Unless otherwise stated, code is untested. Do not use without understanding. Code is posted in the hopes it is useful, but without warranty. All copyrights are relinquished into the public domain unless otherwise stated. I am not an angel. I am capable of error, and err on a fairly regular basis. If I made a mistake, please let me know (such as by replying to this node).

    A reply falls below the community's threshold of quality. You may see it by logging in.