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


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.

Replies are listed 'Best First'.
Re^3: Perl Program Exits.
by BrowserUk (Patriarch) 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: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)
Re^3: Perl Program Exits.
by Anonymous Monk on Aug 03, 2012 at 08:01 UTC