Forum Moderators: coopster & phranque

Message Too Old, No Replies

ActivePerl not staying on

Window disappears

         

adni18

12:53 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi. I just downloaded ActivePerl from ActiveState, and whenever I run a perl file with perl.exe, the window disappears instantly. How can I prevent this from happening? PLEASE HELP ASAP.

Lord Majestic

12:59 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try running perl scripts in command prompt window (Start -> Run -> cmd [enter]). This will require typing command manually such as: C:>perl scriptname.pl [ENTER]

moltar

1:38 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add
<STDIN>
at the end of your code.

kaled

11:00 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a batch file to test your scripts. You need to do this anyway to set up environment vars. At the end of the .bat file, simply add PAUSE.

Kaled.

lexipixel

1:09 am on Jan 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month


I usually open a DOS window and run the script from the prompt:

C:\somedir\subdir\> perl filename.pl

That way I can see the script execute, watch the output (if any) and see any error messages. Simply clicking on a .pl filename in Windows will execute the script, but leave you in the dark as the window closes after run.