Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Technique for building arguments from function name?

by LanX (Saint)
on Dec 04, 2017 at 20:55 UTC ( [id://1204899]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Technique for building arguments from function name?
in thread Technique for building arguments from function name?

> I was toying with the idea of generating HTML code ...

You might be interested to look into CGI::HTML::Functions

> What is this technique called?

Kind of Currying, but that's not necessarily implemented with AUTOLOAD.

update

Or rather Partial application

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re^3: Technique for building arguments from function name?

Replies are listed 'Best First'.
Re^4: Technique for building arguments from function name?
by haukex (Archbishop) on Dec 05, 2017 at 06:16 UTC
    You might be interested to look into CGI::HTML::Functions

    Good point! Quoting that doc:

    If you really want to continue using the HTML generation functionality of CGI.pm then you should take a look at HTML::Tiny instead, which may give you a migration path away from CGI.pm's html generation functions; i strongly encourage you to move towards template driven page generation for anything involving markup as it will make porting your app to other frameworks much easier in the long run.

    And CGI::Alternatives mentions, among several others, Template::Toolkit.

      Lee is not a fan of the module he volunteered to maintain.

      On a side note: The monastery's engine heavily relies on those HTML generation functions from CGI.pm!

      Cheers Rolf
      (addicted to the Perl Programming Language and ☆☆☆☆ :)
      Wikisyntax for the Monastery

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found