in reply to Opening file and checking for data
This will compile the regular expression only once, as opposed to once for every loop iteration. On a large amount of data, this will speed up your code significantly.if($_ =~ /patternmatchinghere/gio)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Opening file and checking for data
by hardburn (Abbot) on Jul 03, 2003 at 14:19 UTC | |
by DBX (Pilgrim) on Jul 03, 2003 at 14:42 UTC |