----- Original Message ----- From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "Anthony Vanelverdinghe" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 10, 2004 12:41 PM Subject: RE: Program close
-----Original Message----- From: Anthony Vanelverdinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 09:30 To: [EMAIL PROTECTED] Subject: Program close When I run a very simple Perl program, it closes immediately after it has done. So that I can't even see the output. How can I solve this? Thanks in advance! I created a simple sub routine which I placed in the Perl/site/lib directory. Then if I am not running from a shell, I place the use statement and the simple call to the sub which basically has a display "depress any key to continue" and chomp(my $MyInput = <STDIN>); Wags ;) There is also a graceful death module for Win32 users of Perl named Win32::Die on CPAN. It holds the DOS command line window open (so you can read screen output) ; it waits until you press a key before closing the DOS window. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>