[perl #61654] Where-clauses only work correctly with blocks -- not smartmatch

2009-02-13 Thread jn...@jnthn.net via RT
On Wed Dec 24 07:35:47 2008, dwh...@nvidia.com wrote: > (rakudo 34337) > > Examples: > > sub foo( $x where { $_ eq "x" } ) { say "X" } > x("x") > > works, but > > sub foo( $x where "x" ) { say "X" } > sub foo( $x where /x/ ) { say "X" } Now also work as of git 0f87695. Plus added tests. T

[perl #61654] Where-clauses only work correctly with blocks -- not smartmatch

2008-12-24 Thread David Whipp
# New Ticket Created by "David Whipp" # Please include the string: [perl #61654] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=61654 > (rakudo 34337) Examples: sub foo( $x where { $_ eq "x" } ) { say "X" } x("x") works,