Ask a Question related to PERL Beginners, Design and Development.

  1. #1

    Default Program close

    Hi

    When I run a very simple Perl program, it closes immediately after it has
    done. So that I can't even see the output. How can I solve this?

    Thanks in advance!

    __________________________________________________ _______________
    De nieuwe Pirelli 2004 kalender al gezien? [url]http://auto.msn.be/pirelli2004/[/url]

    Anthony Vanelverdinghe Guest

  2. Similar Questions and Discussions

    1. CFExecute - Program doesn't close CFMX
      i had the same problem... in the end i just resorted to a UDF that is quite handy. http://www.cflib.org/udf.cfm?ID=744
    2. PDF and program won't open; "Error in Acrord32" "This program has performed an illegal operation and
      I recently had a browser hijacker. Fixed it with Norton and Lavasoft. Now, after downloading new Reader 6.0, I can't open anything. Only gives...
    3. close my project that is in a browser window (close this window)
      How can I do this with a button? What do I have to put into button?
    4. Schedule a program to close
      You might want to schedule a program like taskkill to run at a certain time and kill a certain app. Andrej On Mon, 21 Jul 2003 09:28:06 -0700,...
    5. "End task" command doesn't close a program
      What is wrong with my question since nobody answers it? How to improve the question? "Dmitriy Kopnichev" <kopn@hotbox.ru> wrote in message...
  3. #2

    Default RE: Program close

    Create a simple .bat file call the Perl script and add a pause command after it. :)

    Ned Cunningham
    POS Systems Development
    Monro Muffler Brake
    200 Holleder Parkway
    Rochester, NY 14615
    (585) 647-6400 ext. 310
    [email]ned.cunningham@monro.com[/email]

    -----Original Message-----
    From: Anthony Vanelverdinghe [mailto:anthony_ve@hotmail.com]
    Sent: Tuesday, February 10, 2004 12:30 PM
    To: [email]beginners@perl.org[/email]
    Subject: Program close

    Hi

    When I run a very simple Perl program, it closes immediately after it has
    done. So that I can't even see the output. How can I solve this?

    Thanks in advance!

    __________________________________________________ _______________
    De nieuwe Pirelli 2004 kalender al gezien? [url]http://auto.msn.be/pirelli2004/[/url]


    --
    To unsubscribe, e-mail: [email]beginners-unsubscribe@perl.org[/email]
    For additional commands, e-mail: [email]beginners-help@perl.org[/email]
    <http://learn.perl.org/> <http://learn.perl.org/first-response>


    Ned Cunningham Guest

  4. #3

    Default RE: Program close

    > Hi

    Howdy
    >
    > When I run a very simple Perl program, it
    > closes immediately after it has
    > done. So that I can't even see the output. How
    > can I solve this?
    >
    Don't use windows! :)
    Or try executeing it from a dos prompt directly.
    > Thanks in advance!
    HTH

    DMuey
    Dan Muey Guest

  5. #4

    Default Re: Program close

    Anthony Vanelverdinghe wrote:
    > Hi
    >
    > When I run a very simple Perl program, it closes immediately after it has
    > done. So that I can't even see the output. How can I solve this?
    >
    > Thanks in advance!
    I take it you are running Windows? If so, you should be running Perl from the
    command prompt.
    In general, if you want to do serious work with the system, you should get used
    to working with
    the command prompt. There are a variety of other jobs for which no GUI tool is
    available.

    [OT but useful for Windows users]
    My suggestion:
    Open your Start Menu, then Programs, then Accessories.
    *Right-drag* the shortdut named MS-DOS Prompt [9x] or Command Prompt [Win2K or
    XP]
    either to the base of the start menu or to your desktop. Drop it and select
    "Copy here" from the
    context menu.

    You can also enter:
    cmd
    in the dialog that comes up with the "Run..." command on the start menu. Once
    selected, this
    command will become avaiable on the drop-down menu.

    If you find the black screen ugly, irritating, or intimidating, you can adjust
    the display colors by
    right-clicking the title bar of the command prompt, selecting Defaults, then, if
    necessary the
    Colors tab, and selecting the preferred background and foreground [text]
    colors. I have black
    type on an off-white background. The off-white shade differs just enough from
    other window
    backgrounds to make the command environment immediately recognizable.

    Joseph

    R. Joseph Newton Guest

  6. #5

    Default Re: Program close


    ----- Original Message -----
    From: "Wagner, David --- Senior Programmer Analyst --- WGO"
    <David.Wagner@freight.fedex.com>
    To: "Anthony Vanelverdinghe" <anthony_ve@hotmail.com>; <beginners@perl.org>
    Sent: Tuesday, February 10, 2004 12:41 PM
    Subject: RE: Program close


    -----Original Message-----
    From: Anthony Vanelverdinghe [mailto:anthony_ve@hotmail.com]
    Sent: Tuesday, February 10, 2004 09:30
    To: [email]beginners@perl.org[/email]
    Subject: Program close


    When I run a very simple Perl program, it closes immediately after it has
    done. So that I can't even see the output. How can I solve this?

    Thanks in advance!

    I created a simple sub routine which I placed in the Perl/site/lib
    directory. Then if I am not running from a shell, I place the use statement
    and the simple call to the sub which basically has a display "depress any
    key to continue" and
    chomp(my $MyInput = <STDIN>);


    Wags ;)

    There is also a graceful death module for Win32 users of Perl named
    Win32::Die on CPAN.
    It holds the DOS command line window open (so you can read screen output) ;
    it waits until you press a key before closing the DOS window.





    Karl Hakmiller Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139