my $printed; while (<TEMPLATE>) { if (/<!-- MAIN -->/ .. /<!-- ENDMAIN -->/) { unless ($printed) { open FORMTEMPLATE, 'form.txt' or die "cannot find form.txt: $!"; local $_; print while (<FORMTEMPLATE>) close FORMTEMPLATE; $printed++; } } else { print; } }
In reply to Re: Re: Mixed-up output
by repson
in thread Mixed-up output
by Nimster
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |