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

vrempire has asked for the wisdom of the Perl Monks concerning the following question:

hi guys,I have a problem here.Hope u can help me.My problem is,when I tried to run the perl script,by clicking on a button in HTML page,it asked me to save the perl script.Then,after I asked it to open it,the perl script then run in the MS-DOS,but it quickly disappear,before I can read the result.How I can make it stop before disappear so I can read the result and how I dont want to see the save dialog box?Please help me..

Replies are listed 'Best First'.
RE: run perl script
by ar0n (Priest) on Aug 07, 2000 at 06:07 UTC
    In the start-menu, you'll see an option called "Run" or something like that. Click on it.
    Type 'cmd' or if that doesn't work, 'command'. (I forget which one it is, since i don't use Windows 9x/NT much (not))
    A window with the DOS prompt should pop up, at the command prompt type:
    C:\Windows\>perl script.pl
    Where script.pl is the name of the script you're trying to execute.
    If that doesn't work, you'll either need to download and install the perl interpreter
    or add your perl directory to your path.

    -- ar0n | Just Another Perl Joe

RE: run perl script
by Russ (Deacon) on Aug 07, 2000 at 06:25 UTC
RE: run perl script
by BigJoe (Curate) on Aug 07, 2000 at 17:21 UTC
    You need to be running NT web server. (I am not sure about the personal Web server by MS for 95/98). Because what you really need to do is set up a Service for ActiveState PERL. Then the web server will interpet it. You may also need to take and do an association for the web server. (That is what my IIS admin told me).

    --BigJoe

    Learn patience, you must.
    Young PerlMonk, craves Not these things.
Re: run perl script
by vrempire (Sexton) on Aug 07, 2000 at 07:06 UTC
    well,thanks guys..now I run the perl script from the command -line.and it make my life easier. anyway,I would like to know ,if the result of the perl script show very fast and I cannot scroll it up,to see it,is there any way, so that it can show page by page,like hit enter when it show --more-- to see next page?
      You can also change the amount of lines that the DOS window will store, so you can scroll back over more.

      -or-

      You can also try to program your own pauses into the program's output, and then read it that way.

      -or-

      You can pipe all of your output to a text file and then read it at your hearts content in Notepad or whatever your text editor of choice is.
      Cheers!
A reply falls below the community's threshold of quality. You may see it by logging in.