Closed Thread
Results 1 to 6 of 6

Thread: Pause

  1. #1
    smith is offline Programmer
    Join Date
    Jun 2006
    Posts
    153
    Rep Power
    0

    Pause

    On console output I need to pause before the user can continue. I know there is a way to do this in C/C++ but does perl have some equivalent function?
    Code:
    for (int i;;) {
       cout << "Smith";
    }

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    since I not familiar with C/++ I might be totaly wrong:

    Code:
    print "Waiting for user to input more data: ";
    chomp(my $input = <STDIN>);
    the perl program will wait until the user enters something

  4. #3
    Jordan Guest
    You might also want to check out WWW::Mechanize and the sleep() function.

  5. #4
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    WWW::Mechanize for console?

  6. #5
    smith is offline Programmer
    Join Date
    Jun 2006
    Posts
    153
    Rep Power
    0
    Which method is better? Is WWW:Mechanize only for the web?
    Code:
    for (int i;;) {
       cout << "Smith";
    }

  7. #6
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    Quote Originally Posted by smith View Post
    Which method is better? Is WWW:Mechanize only for the web?
    WWW::Mechanize - Handy web browsing in a Perl object

    but I can't say what I posted is better because I don't know what your C code is doing...

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Pause Execution
    By UIL in forum C# Programming
    Replies: 2
    Last Post: 06-11-2011, 03:32 PM
  2. Implementing pause in a shell program
    By fread in forum C and C++
    Replies: 9
    Last Post: 11-30-2010, 07:03 AM
  3. Getting C to pause after outputting
    By Jamie_B in forum C and C++
    Replies: 23
    Last Post: 11-27-2010, 09:17 AM
  4. C++ "Pause"
    By xXAlphaXx in forum C and C++
    Replies: 10
    Last Post: 02-16-2010, 06:49 AM
  5. pause in Visual basic 2008
    By igee in forum Visual Basic Programming
    Replies: 2
    Last Post: 01-28-2010, 05:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts