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