Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Display in perl executable

by Anonymous Monk
on Jul 18, 2013 at 05:27 UTC ( [id://1044967]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1044967]
Approved by Happy-the-monk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-04-25 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found