Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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.

Replies are listed 'Best First'.
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.

      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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://985167]
[shmem]: perl -lE '$_="odd mornin";($o=$_)=~ s/^|$/g/g;say$o'
[Eily]: Hi monks o/
[choroba]: 3 PM in Vietnam, BTW
Discipulus maybe a wrong impression..
[karlgoethebier]: Discipulus: Workshops are for weenies ;-)
[Discipulus]: here 43C high umidity, tiger mosquitos, violence in the street.. everywhere is vietnam
[karlgoethebier]: OK, i'm socially unacceptable
[karlgoethebier]: Discipulus: Were the hell are you today?
[Discipulus]: ..or suitable for the presidence ;=)
[Discipulus]: at Caput Mundi

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2017-06-27 08:11 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (600 votes). Check out past polls.