develooper Front page | perl.perl5.porters | Postings from September 2009

[PATCH] when(scalar)

Thread Next
From:
Joshua ben Jore
Date:
September 28, 2009 16:41
Subject:
[PATCH] when(scalar)
Message ID:
dc5c751d0909281641w2d3a844ax67288878d3eba086@mail.gmail.com
Applied to blead

commit 5341b2b7ab11bc31f63ac7a675e74106418d0661
Author: Josh ben Jore <jjore@cpan.org>
Date:   Wed Sep 23 15:35:14 2009 -0700

    Fix when( scalar ... ) bug

    looks_like_bool should look past scalar(). Prior to this fix, saying
    scalar() caused the when() argument to be /not/ a boolean even if it
    reasonably was. Perhaps something like: when( scalar /$re/ ). I don't
    know any natural way someone is doing to use when(scalar ...) but it
    certainly seems like it was mistakenly left out.

 op.c          |    4 ++++
 t/op/switch.t |   11 ++++++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About