I have about 20 of these matching lines of code. At first I had the matching lines inside the while loop. Opening a document took about 30 secs, now with it on the outside it takes about 5 secs. Is there a better way to do this? Scottopen(RTF_FILE, "file"); while(<RTF_FILE>){ $document.=$_; } $document =~ s/SURNAME/$surname/ ; .... .... print $document ;
In reply to Matching data in a big file by alexsc01
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |