Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-22 Thread David Nicol
On 4/21/05, Keith Ivey <[EMAIL PROTECTED]> wrote: > > What is the advantage of Tie::Function over MJD's similar Interpolation.pm? * it's smaller * it gives cute ascii art when you run the tests provided with the package * the documentation is formatted beter * Tie::Function does only one thin

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread Keith Ivey
David Nicol wrote: or even a doc-patch for HTML::Entities. I think my political goal here is fame points through getting Tie::Function into wider use. What is the advantage of Tie::Function over MJD's similar Interpolation.pm? -- Keith C. Ivey <[EMAIL PROTECTED]> Washington, DC

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread Ken Williams
On Apr 21, 2005, at 12:10 PM, David Nicol wrote: $ perl -wc -e 'use strict; the deer and antelope play ; print 1' -e syntax OK % perl -wc -Mstrict -e 'The deer and antelope play until tiger comes; \ chomp, kill, die time' -e syntax OK

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread Sean Quinlan
On Thu, 2005-04-21 at 12:10 -0500, David Nicol wrote: > On 4/21/05, Ken Williams <[EMAIL PROTECTED]> wrote: > > > True, but it's not too small to submit as a patch for HTML::Entities. > or even a doc-patch for HTML::Entities. I think this a great idea! It's small enough. If it includes a good p

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread A. Pagaltzis
* David Nicol <[EMAIL PROTECTED]> [2005-04-21 19:15]: > HTML::Entities is widely deployed and if it was to start > exporting %Entitize that would break most of my code that uses > it â â how?! Regards, -- #Aristotle *AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1}; &Ju

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread David Nicol
On 4/21/05, Ken Williams <[EMAIL PROTECTED]> wrote: > True, but it's not too small to submit as a patch for HTML::Entities. > > -Ken or even a doc-patch for HTML::Entities. I think my political goal here is fame points through getting Tie::Function into wider use. HTML::Entities is widely d

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-21 Thread Ken Williams
On Apr 20, 2005, at 11:52 AM, David Nicol wrote: These three lines are too small to bother wrapping up in Entitize.pm and publishing to CPAN, in my opinion. True, but it's not too small to submit as a patch for HTML::Entities. -Ken

Re: how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-20 Thread A. Pagaltzis
* David Nicol <[EMAIL PROTECTED]> [2005-04-20 19:00]: > These three lines are too small to bother wrapping up in > Entitize.pm and publishing to CPAN, in my opinion. You want > it, it will copy and paste into your cygwin bash or xterm. > Opinions are subject to change. Good, but then that makes t

how to interpolate html entities easily (HOWTO) (full text of Entitize.pm)

2005-04-20 Thread David Nicol
the following snippet allows stating things like use Entitize; ... print qq{\n}; ... print qq{The full text of the block is $Entitize{$block}\n}; directly, rather that using the generating functions of CGI.pm, or making intermediate variables to hold the results of