![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Location: Denver, Colorado
Posts: 8
Rep Power: 0
![]() |
system "PAUSE";
hello. I have some basic experience in c/c++, but when it comesto perl I am a newb.I was wondering if experienced perl programmers object to using system "PAUSE"; at the end of their programs to eliminate having to run them from a command line. Thnx in advance
|
|
|
|
|
|
#2 |
|
Programmer
|
Yes. A huge chunk (I'd say over 95%) of Perl code is run on *nix systems, where no such pause command is available. You could try using getc:
print "pausing...\n"; getc(); |
|
|
|
|
|
#3 |
|
Newbie
Join Date: May 2006
Location: Denver, Colorado
Posts: 8
Rep Power: 0
![]() |
Is that like getchar() in C? if so, if you use that to get a char will it seice to be able to pause the program like in C? Also, what is nix*?
|
|
|
|
|
|
#4 |
|
Programmer
|
Yes, it does the same thing as getchar() - waits until a character is input, and then returns it.
*nix collectively refers to Unix, Linux, Mac OS X, every OS considered Unix-like - so almost everything but Windows. ![]() |
|
|
|
|
|
#5 |
|
Newbie
Join Date: May 2006
Location: Denver, Colorado
Posts: 8
Rep Power: 0
![]() |
I see
|
|
|
|
|
|
#6 |
|
Professional Programmer
|
|
|
|
|
|
|
#7 | |
|
Programming Guru
![]() ![]() |
Quote:
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
|
#8 | ||
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Quote:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
||
|
|
|
|
|
#9 | |
|
Programmer
|
Quote:
|
|
|
|
|
|
|
#10 | ||
|
Programming Guru
![]() ![]() |
Quote:
Quote:
BTW, usually the interupt on the systems is sent by hitting ctrl-c. However on SEO linux (and possabily on other linux systems, most should be setup as ctrl-c though) the interupt is tied to the delete key.
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
||
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to meet these cross-platform project goals? | mattengland | C++ | 1 | Apr 3rd, 2006 5:01 AM |
| PHP system commands | ktsirig | PHP | 6 | Oct 4th, 2005 2:24 AM |
| Why shouldn't we use System(); | Shapeless | C++ | 7 | Jul 19th, 2005 7:10 AM |
| System Info | Da-Kid | C++ | 9 | Feb 15th, 2005 7:46 AM |