How to execute the perl code after an interval

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RaviRajhulk
    New Member
    • Feb 2008
    • 12

    How to execute the perl code after an interval

    I need to execute the perl code after a delay of say an minute.. and i need to write to do this in the perl code itself....Plz help
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #2
    Originally posted by RaviRajhulk
    I need to execute the perl code after a delay of say an minute.. and i need to write to do this in the perl code itself....Plz help
    Use sleep command. e.g:
    Code:
        sleep 10;
    This will pause for 10 seconds.

    Comment

    Working...