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

Re^5: using a 'here' doc to build a web page

by kennethk (Abbot)
on Jun 21, 2017 at 17:04 UTC ( #1193223=note: print w/replies, xml ) Need Help??


in reply to Re^4: using a 'here' doc to build a web page
in thread using a 'here' doc to build a web page

While it certainly can be done, the priority here should probably be making the best value of your time. From that perspective, CGI was removed from CORE specifically because modern frameworks, such as marto's suggested Mojolicious::Lite, actually get you done faster for even simple projects than either hand-rolled or CGI-assisted web page development. A read through CGI::Alternatives is worth your time.

That said, I have on many occasions used either a heredoc or a DATA block to hold HTML or an HTML template.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

  • Comment on Re^5: using a 'here' doc to build a web page

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2020-06-03 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (23 votes). Check out past polls.

    Notices?