Rahul Gupta has asked for the wisdom of the Perl Monks concerning the following question:
Hi ,
I have a file with huge data, i read the same file and stored the content in an array
my @file_content = read(file); foreach(@file_content){ if ($_ =~ m/somestring/){ } }
i have to check the string for some specific time(i.e 5 secs..). if i don't get the string in defined time, then it should get terminate.
i used alarm but it didn't work for me.
can any one help me
thanks in advance
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to set timer in perl
by hbm (Hermit) on Jun 13, 2013 at 13:09 UTC | |
by perlfan (Vicar) on Jun 13, 2013 at 16:05 UTC | |
Re: How to set timer in perl
by Bloodnok (Vicar) on Jun 13, 2013 at 13:33 UTC | |
by Rahul Gupta (Sexton) on Jun 14, 2013 at 05:35 UTC | |
by Anonymous Monk on Jun 14, 2013 at 07:18 UTC | |
Re: How to set timer in perl
by DrHyde (Prior) on Jun 14, 2013 at 10:58 UTC |
Back to
Seekers of Perl Wisdom