in reply to Re: Passing parameters to Perl Script
in thread Passing parameters to Perl Script

If that is to be run under Windows, you will need to
- wrap your script into a batch-file using perl2bat
c:\> pl2bat scriptname c:\> echo 1 2 3|scripname.bat
- or pipe to perl.exe
echo 1 2 3|perl.exe scriptname
because of some limitations of the Windows-shell


holli, /regexed monk/

Replies are listed 'Best First'.
Re^3: Passing parameters to Perl Script
by blazar (Canon) on Feb 18, 2005 at 09:34 UTC
    If that is to be run under Windows, you will need to - wrap your script into a batch-file using perl2bat
    Does it really work? I'm not saying it doesn't, I just have a doubt. More specifically I've been using pl2bat and much to my surprise and disappointment I've noticed that I cannot use redirection of output (I had to add '-o' cmd line switches to "utilities" only moderately more complex than one-liners!). Don't know about input...

    I would check by myself but I'm under Linux now and I won't have access to a Windoze machine up until this evening...