RFC: String::Tagged

2009-01-29 Thread Paul LeoNerd Evans
I find myself requiring an object to store a text string, with ways to throw markup or presentation attributes around it, but in such a way that they're easy to edit and change separately from the string data. I.e. the usual embedded HTML / ANSI escapes / etc... are not really suitable. With this

Re: RFC: String::Tagged

2009-01-29 Thread Bill Ward
Why just strings? Why not scalars? On Thu, Jan 29, 2009 at 4:52 PM, Paul LeoNerd Evans leon...@leonerd.org.uk wrote: I find myself requiring an object to store a text string, with ways to throw markup or presentation attributes around it, but in such a way that they're easy to edit and change

Re: RFC: String::Tagged

2009-01-29 Thread Ryan Voots
Bill Ward wrote: Why just strings? Why not scalars? The tags appear to be positioned in the string so i'm not sure how that would work for scalars. On Thu, Jan 29, 2009 at 4:52 PM, Paul LeoNerd Evans leon...@leonerd.org.uk wrote: METHODS $str = $st-str Returns the plain string