http://www.perlmonks.org?node_id=121791

Kage has asked for the wisdom of the Perl Monks concerning the following question:

ok... if I did like
open (FILE,"<$footer"); if ($lock){ flock(DATA, $lock)} @footerfile = <FILE>; close(FILE); foreach $footerline(@footerfile) { print "$footerline"; }
how would I put in a  while( $tmpl = <FILE> ) { $tmpl =~ s/<<whatever>>/$whatever/g; } ?

Edit kudra, 2001-10-30 Changed title