Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Code Generation with Perl?

by davido (Archbishop)
on Oct 04, 2003 at 04:34 UTC ( #296464=note: print w/replies, xml ) Need Help??

in reply to Code Generation with Perl?

There are examples all around us of using Perl for code generation:
  • CGI: Perl is probably the number one tool used in generating HTML code for CGI.
  • CGI: Perl is often used to generate Javascript embedded within HTML.
  • SQL: Perl is often used to generate SQL code for database interaction.
  • The B::.... modules (need I say more?).
  • eval (it's mere existance....)

Those are just some very common and familiar examples. They're so familiar and seem in many cases so effortless that we forget Perl is generating code. But honestly, if Perl is "The Glue of the Internet", it is that because it excells at gluing things together, and often includes outputting code that some other entity can utilize.

If any of those (Javascript, HTML, SQL) interest you as "code generated by Perl", after immersing yourself in learning Perl itself, check out "CGI Programming with Perl" (O' Rielly).


"If I had my life to do over again, I'd be a plumber." -- Albert Einstein

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://296464]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2018-03-23 09:43 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (289 votes). Check out past polls.