Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

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).


Dave


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


Comment on Re: Code Generation with Perl?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2014-10-01 22:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (40 votes), past polls