Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hey

I have made a perl executable and its working , the problem is at last when it should display 'ABC.txt' has been created , it displays and closes the cmd prompt window , without allowing user to see it .

So can we do something like "press key to exit"

so atleat user can view the displayed message

Replies are listed 'Best First'.
Re: Display in perl executable
by 2teez (Vicar) on Jul 18, 2013 at 05:43 UTC

    Something like this:

    use warnings; use strict; print "Hello, World"; print "Press Enter to close"; <STDIN>; # or just use <>

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
Re: Display in perl executable ("press key to exit" , flashes on screen)
by Anonymous Monk on Jul 18, 2013 at 07:10 UTC