CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Stopping the program from instantly quitting

 



dsvoid
New User

May 6, 2009, 3:25 PM

Post #1 of 3 (326 views)
Stopping the program from instantly quitting Can't Post

Hello. I'm new here and I've used Perl for thirty minutes after I bought a guide to it. Now, the guides outdated (Perl v.5.6), and I'm using 5.10.0. I can make a few small programs, but after they've done whatever, they instantly quit! In an example, I started writing the standard

Code
print "hello world\n";

right? After it did that, i just quit the program. It took me a lot of tricky squinting to tell that the program ran and did whatever. Is there any way to stop this?


(This post was edited by dsvoid on May 6, 2009, 3:39 PM)


KevinR
Veteran


May 6, 2009, 3:54 PM

Post #2 of 3 (310 views)
Re: [dsvoid] Stopping the program from instantly quitting [In reply to] Can't Post

Are you using perl on Windows? If so, open a DOS or command prompt window and run your perl programs from there and the output will remain visible.

perl c:\path\to\scriptname

if perl is not in the command path you can change dir to where perl is or use the full path from the prompt:

c:\perl\bin\perl.exe c:\path\to\scriptname

Or get a perl IDE and write/edit/run your programs in the IDE (you stillneed perl installed). A free one for Windows is Perl Express:

http://www.perl-express.com/
-------------------------------------------------


dsvoid
New User

May 6, 2009, 4:00 PM

Post #3 of 3 (308 views)
Re: [KevinR] Stopping the program from instantly quitting [In reply to] Can't Post

Thanks! Installing PerlExpress now.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives