\ rakudo: my $a = "a"; $a ~~ / $a /; say $/.chars
\ rakudo 0a04ef: OUTPUT«-4»
\ Erm. :-)
\ I'm slightly uncomfortable with .chars ever returning
something negative.
\ tempted to submit that as a rakudobug.
\ It has unlength.
* moritz_ yawns. Another manifestation of $/ not being a proper Match object
\ "that's the shortest string I've ever seen!"
\<moritz_> rakudo: my $a = "a"; $a ~~ / $a /; say ?$/
\ rakudo 0a04ef: OUTPUT«0»
\ length with direction :)
\<moritz_> so, a failed match
\ I know.
\<moritz_> which has .from > .to
\ I know.
\ PGE and GGE do the same.
\ alpha: "foo" ~~ /bar/; say $/.chars
\ alpha 30e0ed: OUTPUT«0»
\ moritz_: still don't manifest that bug.
\<moritz_> masak: just submit it; one more ticket I can close when I
get proper Match objects running in Perl 6
* masak submits rakudobug
Migrated from rt.perl.org#74694 (status was 'resolved')
Searchable as RT74694$