Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Perl Program Exits.

by Xelium (Initiate)
on Aug 03, 2012 at 07:03 UTC ( #985167=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl Program Exits.
in thread Perl Program Exits.

Thank you, this worked, I couldn't find how to edit it in properties though.


Comment on Re^2: Perl Program Exits.
Re^3: Perl Program Exits.
by BrowserUk (Pope) on Aug 03, 2012 at 07:28 UTC
    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.

Re^3: Perl Program Exits.
by Anonymous Monk on Aug 03, 2012 at 08:01 UTC
Re^3: Perl Program Exits.
by Anonymous Monk on Aug 03, 2012 at 08:07 UTC
    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://985167]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2014-12-26 22:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls