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

Re: Code Generation with Perl?

by davido (Cardinal)
on Oct 04, 2003 at 04:34 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-24 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found