in reply to flashing perl

This is a pretty common problem when you are first starting. The *best* way to deal with this to open up a DOS prompt and cd \path\to\script. Then, you can run the script from the command line and the window won't close.

You could use something like getch() to make the window pause before closing, but it's an ugly hack (IMHO). Working from the command line is cleaner.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

Replies are listed 'Best First'.
Re: (Ovid) Re: flashing perl
by kab0b0:#: (Initiate) on Feb 10, 2002 at 07:06 UTC
    Or you could open a DOS prompt, cd into the dir of your script, and do:

    perl script.pl > output.txt

    Then you could just take a look at output.txt @:)

    ----------------------------------
    away: Constructing a sound defense