Solved

perl, how do I tell my script to sleep for 2 secs

Posted on 2010-11-24
4
437 Views
Last Modified: 2012-05-10
perl, how do I tell my script to sleep for 2 secs
0
Comment
Question by:rgbcof
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:jmatix
ID: 34208347
sleep 2;
0
 

Author Comment

by:rgbcof
ID: 34208398
Whoops, I mean 2 milliseconds.
0
 
LVL 16

Accepted Solution

by:
jmatix earned 500 total points
ID: 34208448
use Time::HiRes qw(usleep);
 
usleep(2000);
0
 

Author Closing Comment

by:rgbcof
ID: 34208903
Ah, thanks.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now