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

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

dsvoid
New User

May 6, 2009, 3:25 PM

Post #1 of 3 (319 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 (303 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 (301 views)
 Re: [KevinR] Stopping the program from instantly quitting [In reply to] Can't Post
Thanks! Installing PerlExpress now.

 Announcements     PerlGuru Announcements Perl Programming Help     Frequently Asked Questions     Beginner     Intermediate     Advanced     Regular Expressions     mod_perl     DBI     Win32 Programming Help Fun With Perl     Perl Quizzes - Learn Perl the Fun Way     Perl Golf     Perl Poetry Need a Custom or Prewritten Perl Program?     I need a program that...     I Need a Programmer for Freelance Work     Throw Down The Gauntlet General Discussions     General Questions     Feedback     Tutorial/Article Suggestions for The Learning Cent     Internet Security Other Programming Languages     Javascript     PHP

 Search this forum this category all forums for All words Any words Whole Phrase (options) Powered by Gossamer Forum v.1.2.0