Re: Parameters in command line

From: John Bokma (postmaster_at_castleamber.com)
Date: 02/20/05


Date: 20 Feb 2005 21:23:01 GMT

Brian McCauley wrote:

> yusufdestina wrote:
>
>> Can someone point me to a direction for this?
>> I have an application that opens another perl execuatable file. [PAR]
>> How can I pass vars to the perl appl.?
>> ex: testfile.exe name=value ...
>
> It it confusing to use an .exe suffix on a Perl script.

Read a bit more about PAR and pp and then you understand.

>> Tnx for ur time and help.
>> sorry for my poor english..
>
> Then write Perl. Show us what you have tried.
>
> You call external executables with argument using system(). RTFM for
> details.
>
> But the real answer is that you should probably not do it.
>
> Do not have the first script call the second.
>
> Cut out the guts of the second Perl script and make it into a module
> that is used by both scripts.

Again, read more about PAR and pp, RTFM so to speak :-D.

-- 
John                   Small Perl scripts: http://johnbokma.com/perl/
               Perl programmer available:     http://castleamber.com/
            Happy Customers: http://castleamber.com/testimonials.html
                        


Relevant Pages

  • RE: Segmentation Fault(Core dumped)
    ... But when I started testing my perl script, ... Compilation failed in require at ./test.pl line 13. ... > official business of Sender. ...
    (perl.dbi.users)
  • Re: sharing variables-data perl-asp
    ... Also how do you invoke a perl script from an active server page? ... ASP in Perl. ... Why do you want to shell out to perl when you're already running perl? ...
    (comp.lang.perl.misc)
  • Re: environment variables in perl scripts
    ... Define a BEGIN block in your perl program. ... > perl script, something like: ... > environment variables are there and diag.txt shows ... > This communication is intended for the use of the ...
    (perl.dbi.users)
  • Re: kill process when file count reached,,.
    ... an infinite loop there, ... IMO you could just use readdir and grep in perl. ... You're using awk in backticks in a perl script? ... Perl has a kill builtin, why the hell not use that. ...
    (comp.lang.perl.modules)
  • Re: associating .pl extension with perl
    ... > On my laptop Linux system, I can execute perl scripts ... > associated with perl. ... interpreter that will execute the code contained therein. ... > I discovered this problem when using a perl script that I wrote on my ...
    (comp.lang.perl.misc)