Double-clicking perl scripts -- console window dissapears immediately.

Posted by troyt on 2006-06-27 14:30
OS: Windows | Product: ActivePerl

When I double-click my perl program, the console window disappears before I can see the output.


If you just double-click on the program file in Windows, the console window it opens for output will close as soon as the script finishes. It is best to run Perl scripts directly from the command-line.

For example, open a console window (DOS prompt) and execute this command:

  perl C:\perl\eg\

The console window will stay open allowing you to see the output:

  Hello from ActivePerl!

If you're interested in a development environment that allows you to execute scripts in a GUI, check out Komodo: