Re: Parsing indent-sensitive languages

2005-09-08 Thread Collin Winter
On 9/8/05, Larry Wall <[EMAIL PROTECTED]> wrote: > Okay, how do you tell the difference between > > if foo1 > bar1 > if foo2 > bar2 > if foo3 > bar3 > else >

Re: Parsing indent-sensitive languages

2005-09-08 Thread Collin Winter
On 9/8/05, Larry Wall <[EMAIL PROTECTED]> wrote: > It seems to me you need a stack of levels so you know how many > indentation levels to pop off. Otherwise you can't parse this: > > if foo1 > bar1 > if foo2 > bar2 >

Re: Do I need "has $.foo;" for accessor-only virtual attributes?

2005-07-22 Thread Collin Winter
vious debate over this in the past, but this seems a lot more natural to me than a magical leading underscore. Collin Winter

Re: is_deeply() and code refs

2005-06-26 Thread Collin Winter
when you passed it to B::Deparse whether $five was 5 or 6? So, as you said in your post, "the deparsed subs are identical they may behave totally differently"; do they really behave differently, though? They both check parent scopes for unknown variables; the only difference is where they're checking. Collin Winter

Re: is_deeply() and code refs

2005-06-25 Thread Collin Winter
this matter sorted, I've started on the code and requisite tests to make the new stuff work. Collin Winter

Re: is_deeply() and code refs

2005-06-25 Thread Collin Winter
nto the works. Storable uses B::Deparse when serialising coderefs, though, so I'm certain there's a way around this. Collin Winter On 6/25/05, Michael G Schwern <[EMAIL PROTECTED]> wrote: > Currently, throwing is_deeply() a code ref causes it to barf. > > perl -MTest: