Re: extending <% | %>
Hans Dieter Pearcey <[email protected]> Fri, 15 Feb 2008 20:01:05 -0500
| Newsgroups | gmane.comp.web.mason.devel |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Feb 15, 2008 at 03:21:24PM -0800, BenRifkah Bergsten-Buret wrote: > Ah. Now I see the dilemma. I was stuck on vertical bars on the LHS of > the pipe. It's not a huge problem if you only have to account for pipes > on the LHS, but if you allow arbitrary perl (including vertical bars) on > the RHS then parsing can become a lot more difficult. > > If you only have to account for '| foo(<arbitrary perl>)' then you might > be able to get some help from Text::Balanced. Allowing for '| > foo(<arbitrary perl>) | bar(<arbitrary perl>)' would be more difficult > but doable. (Not that you implied it but if you have to allow '| > <arbitrary perl>' I think you're going to be SOL.) I had thought of Text::Balanced and ended up discarding it; I think this was because I hadn't considered disallowing '|' in filter arguments, or something. Either that or there was some problem with using it because I had to start at the end of the string (I know, reverse). I can't remember. If I have time this weekend I'll look at it again. hdp. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/