given $c
{
when $c ~~/defDEF/ { $c = '3'; }
}
would have worked? This isn't a big deal, it's easy enough to work around, but it does lose elegance points.
PS Looks like $s.substr($i,1) = $c; doesn't work yet, either? Or is there something wrong with the syntax of that?
'when' smartmatches (Score:1)
when
}
Re: (Score:1)
However, when I try that now, it doesn't seem to actually work. It compiles okay, but none of the matches seem to fire...