Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
go ahead... be a heretic
 
PerlMonks  

Re: Perl Program Exits.

by BrowserUk (Pope)
on Aug 03, 2012 at 06:48 UTC ( #985166=note: print w/ replies, xml ) Need Help??


in reply to Perl Program Exits.

Try adding this close to the top of your program:

END{ sleep 1e9; }

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?


Comment on Re: Perl Program Exits.
Download Code
Re^2: Perl Program Exits.
by Xelium (Initiate) on Aug 03, 2012 at 07:03 UTC
    Thank you, this worked, I couldn't find how to edit it in properties though.
      I couldn't find how to edit it in properties though.

      I'm not aware of any mechanism using the properties to prevent the window closing when the program finishes.

      My 'fix' simply delays the program finishing for a very long time or until you manually close the window.

      There is wperl.exe which can do something similar I think, but I've never used and can't find any documentation on how to use it.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        wperl.exe does the opposite. It doesn't prevent the window from disappearing, it prevents it from ever appearing. It's used for GUI scripts where you do not want the console to show.

        Jenda
        Enoch was right!
        Enjoy the last years of Rome.

      You "could" setup this association
      assoc .plA=PerlScriptAnnoying FTYPE PerlScriptAnnoying=cmd.exe /k "perl.exe" %1 %* set pathext=%pathext%;.PLA
      and that would keep cmd.exe open after perl is finished (/k means keep cmd open)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-04-21 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls