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.
In reply to (Ovid) Re: flashing perl
by Ovid
in thread flashing perl
by funky_aunt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |