#1
  1. the one
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    .hr
    Posts
    109
    Rep Power
    22
    Is there any command in Perl that would pause executing of script for few seconds and than continue...?
  2. #2
  3. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    Ft. Lauderdale, FL, US
    Posts
    29
    Rep Power
    0
    sleep(seconds);
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Posts
    0
    Rep Power
    0
    sleep undef, undef, undef, 0.01; # sleeps for 0.01 of a second

    OR

    use Time::HiRes "usleep";
    usleep 1; # sleep for one microsecond (1/1000000 of a second)
  6. #4
  7. the one
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2000
    Location
    .hr
    Posts
    109
    Rep Power
    22
    Thanks!

IMN logo majestic logo threadwatch logo seochat tools logo