Dec 9, 2008, 6:44 AM
Post #1 of 3
I have a script that I run in Window with ActivePerl installed. This script basically goes to a network drive and load the file up and search for a string. I run it by doubleclicking .pl file. This runs fine and the command prompt window pops up and I'm able to input the paramater I want to search for. However, if for any reason this file is unreachable you can see the cmd window disappear without any errors. How can I have the cmd stay up so the user can see the error msg? If I run this script in cmd then obviously the error is display but again, I would like to just run the script by double clicking the icon? Any help is apperciated.
This is what I have below.
$wlog = '../wrapper.log';
open(INFO, $wlog) or die("Could not open log file. $!");