Home > Archive > PERL Beginners > June 2007 > Set time period for a statement to execute
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Set time period for a statement to execute
|
|
| Anand Kumar 2007-06-20, 7:59 am |
| Please guide me with some code or documentation for the following problem :-
I need to set some specific time for a command to execute. For example, If I am opening a very large file and it takes me more than 3 to 4 seconds then my code should be able to quit the program or kill the process of opening the file and display an err
or message.
Thanks in advance for the help
-Anand
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
| |
| Mumia W. 2007-06-20, 7:59 am |
| On 06/20/2007 02:07 AM, anand kumar wrote:
> Please guide me with some code or documentation for the following problem :-
>
> I need to set some specific time for a command to execute. [...]
>
The "alarm" function might help you:
At a command prompt, type "perldoc -f alarm"
| |
| Anand Kumar 2007-06-21, 3:59 am |
| Thank You It worked fine
-Anand
"Mumia W." <mumia.w.18.spam+nospam@earthlink.net> wrote:
On 06/20/2007 02:07 AM, anand kumar wrote:
> Please guide me with some code or documentation for the following problem :-
>
> I need to set some specific time for a command to execute. [...]
>
The "alarm" function might help you:
At a command prompt, type "perldoc -f alarm"
--
To unsubscribe, e-mail: beginners-unsubscribe@perl.org
For additional commands, e-mail: beginners-help@perl.org
http://learn.perl.org/
---------------------------------
Here’s a new way to find what you're looking for - Yahoo! Answers
|
|
|
|
|