how would I put in a while( $tmpl = <FILE> ) { $tmpl =~ s/<<whatever>>/$whatever/g; } ?open (FILE,"<$footer"); if ($lock){ flock(DATA, $lock)} @footerfile = <FILE>; close(FILE); foreach $footerline(@footerfile) { print "$footerline"; }
Edit kudra, 2001-10-30 Changed title
In reply to How can I make a regex apply to each line of a file? by Kage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |