http://www.perlmonks.org?node_id=266271

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

I'm pretty sure someone knows a simple solution to this. Anyway, here goes: I'm a Perl beginner using a Windows XP system with ActiveState's Perl port. I've associated the .pl file type with the my perl.exe file, so I can run perl scripts in a DOS-style window by clicking on them. The problem is that the program terminates and disappears as soon as it executes all of its code. A simple program like:
#! C:\Perl print "Hello, world!";
would run and flash on the screen for only a moment before disappearing. How should I fix this problem and make the program remain on screen until I close it? Thank you.