Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Mixed-up output

by repson (Chaplain)
on Jan 16, 2001 at 09:14 UTC ( [id://52160]=note: print w/replies, xml ) Need Help??


in reply to Re: Mixed-up output
in thread Mixed-up output

Speaks for itself, isn't perfect tho.
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; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://52160]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-25 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found