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 advanceIn reply to How to set timer in perl by Rahul Gupta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |