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)
In reply to Re: Opening file and checking for data
by DBX
in thread Opening file and checking for data
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |