Kage has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Oooh, Oooh, Help Me Help Me (:
by jj808 (Hermit) on Oct 28, 2001 at 07:44 UTC | |
by ChemBoy (Priest) on Oct 28, 2001 at 09:11 UTC | |
Re: How can I make a regex apply to each line of a file?
by Hofmator (Curate) on Oct 30, 2001 at 21:02 UTC | |
by davorg (Chancellor) on Oct 30, 2001 at 21:20 UTC |