On Mon Aug 09 07:19:30 2010, pawel.pab...@implix.com wrote:
> $ perl6 -e '$_ = "0"; s/-/1/;'
> Could not find sub &s
>   in main program body at line 1
> 
> same LTA message is on STD:
> 
> [16:08] <bbkr> std: $_ = "0"; s/-/1/;
> [16:08] <p6eval> std 31912:
> OUTPUT«===SORRY!===␀Undeclared
> routine:␀      's' used at line 1␀Check failed␀FAILED 00:01 116m␀»
> [16:08] <bbkr> who can explain this one?
> [16:08] <moritz_> you need to escape - in a regex
> [16:09] <moritz_> and empty regex is disallowed
> [16:09] <moritz_> and std used to give good error messages for both,
> but it's
> borked now
> [16:09] <bbkr> moritz_: I know about escaping. but error is LTA in
> this case.
> [16:10] <moritz_> bbkr: not only LTA. It sucks.
> [16:10] <moritz_> TimToady: (see above)

This now gives the much awesomer:

09:16 < [Coke]> rakudo: $_ = "0"; s/-/1/; # RT #77110
09:16 <+p6eval> rakudo ce5cca: OUTPUT«===SORRY!===␀Unrecognized regex
                metacharacter (must be quoted to match literally) at 
line 1,
                near "/1/; # RT "␀»

Closable with tests.

-- 
Will "Coke" Coleda

Reply via email to