in reply to Perl6::Rules Capturing

I would guess that Perl6::Rules is not properly installed. It is a complex and highly experimental module with dependencies that I do not understand.

When you installed it, did you run the test suite? (The make test step.) When I tried that, I had a ton of failures, castaway did likewise. I forced an install of the module, and your script produced the same result for me that it did for you. From the documentation, the script clearly should work.

Therefore I'm guessing that if you tried it, it would fail the test suite. If running the module matters to you, you should look at the failures, start running the tests individually, and see if you can track down what fails. For those who are interested, I below is a summary of my test failures, and I'll mention this thread to TheDamian (who may or may not have the time/energy needed to do anything about it):

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/anchors........................ok + t/array_cap......................ok + t/assert.........................ok + t/capture........................ok + t/charset........................ok + t/codeblock......................ok + t/codevars.......................ok + t/combchar.......................ok + t/context........................ok + t/continue.......................Invalid quantifier: /:globally:cont:g +lobally:cont:globally:cont:globally:cont:globally:cont:globally:cont: +globally:cont <--HERE .../ Fatal error in one or more Perl 6 rules t/continue.......................dubious + Test returned status 0 (wstat 11, 0xb) t/counted........................dubious + Test returned status 0 (wstat 11, 0xb) t/der_grammar....................dubious + Test returned status 0 (wstat 11, 0xb) t/error..........................dubious + Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/exhaustive.....................ok + t/grammar........................dubious + Test returned status 0 (wstat 11, 0xb) t/hash_cap.......................ok + t/hashkv.........................ok + t/inline.........................ok + t/litvar.........................ok + t/lookaround.....................ok + t/named_cap......................dubious + Test returned status 0 (wstat 11, 0xb) t/named_chars....................ok + t/newline........................ok + t/noncap.........................ok + t/null...........................dubious + Test returned status 0 (wstat 11, 0xb) t/overlapping....................ok + t/patvar.........................ok + t/pos............................ok + t/prior..........................Undefined subroutine &main:: called a +t t/prior.t line 4. # Looks like your test died before it could output anything. t/prior..........................dubious + Test returned status 9 (wstat 2304, 0x900) t/prior_interp...................ok + t/propcharset_slow_to_compile....NOK 751# Failed test (t/propchars +et_slow_to_compile.t at line 942) t/propcharset_slow_to_compile....NOK 752# Failed test (t/propchars +et_slow_to_compile.t at line 943) t/propcharset_slow_to_compile....NOK 753# Failed test (t/propchars +et_slow_to_compile.t at line 944) t/propcharset_slow_to_compile....NOK 755# Failed test (t/propchars +et_slow_to_compile.t at line 946) t/propcharset_slow_to_compile....NOK 759# Failed test (t/propchars +et_slow_to_compile.t at line 950) t/propcharset_slow_to_compile....NOK 892# Failed test (t/propchars +et_slow_to_compile.t at line 1147) t/propcharset_slow_to_compile....NOK 893# Failed test (t/propchars +et_slow_to_compile.t at line 1148) t/propcharset_slow_to_compile....NOK 894# Failed test (t/propchars +et_slow_to_compile.t at line 1149) t/propcharset_slow_to_compile....NOK 896# Failed test (t/propchars +et_slow_to_compile.t at line 1151) t/propcharset_slow_to_compile....NOK 900# Failed test (t/propchars +et_slow_to_compile.t at line 1155) t/propcharset_slow_to_compile....NOK 964# Failed test (t/propchars +et_slow_to_compile.t at line 1251) t/propcharset_slow_to_compile....NOK 965# Failed test (t/propchars +et_slow_to_compile.t at line 1252) t/propcharset_slow_to_compile....NOK 966# Failed test (t/propchars +et_slow_to_compile.t at line 1253) t/propcharset_slow_to_compile....NOK 968# Failed test (t/propchars +et_slow_to_compile.t at line 1255) t/propcharset_slow_to_compile....NOK 972# Failed test (t/propchars +et_slow_to_compile.t at line 1259) t/propcharset_slow_to_compile....NOK 1339# Failed test (t/propchar +set_slow_to_compile.t at line 1786) t/propcharset_slow_to_compile....NOK 1340# Failed test (t/propchar +set_slow_to_compile.t at line 1787) t/propcharset_slow_to_compile....NOK 1341# Failed test (t/propchar +set_slow_to_compile.t at line 1788) t/propcharset_slow_to_compile....NOK 1343# Failed test (t/propchar +set_slow_to_compile.t at line 1790) t/propcharset_slow_to_compile....NOK 1347# Failed test (t/propchar +set_slow_to_compile.t at line 1794) t/propcharset_slow_to_compile....NOK 1444# Failed test (t/propchar +set_slow_to_compile.t at line 1935) t/propcharset_slow_to_compile....NOK 1445# Failed test (t/propchar +set_slow_to_compile.t at line 1936) t/propcharset_slow_to_compile....NOK 1446# Failed test (t/propchar +set_slow_to_compile.t at line 1937) t/propcharset_slow_to_compile....NOK 1448# Failed test (t/propchar +set_slow_to_compile.t at line 1939) t/propcharset_slow_to_compile....NOK 1455# Failed test (t/propchar +set_slow_to_compile.t at line 1946) t/propcharset_slow_to_compile....NOK 1506# Failed test (t/propchar +set_slow_to_compile.t at line 2021) t/propcharset_slow_to_compile....NOK 1507# Failed test (t/propchar +set_slow_to_compile.t at line 2022) t/propcharset_slow_to_compile....NOK 1508# Failed test (t/propchar +set_slow_to_compile.t at line 2023) t/propcharset_slow_to_compile....ok 1734/0Can't find Unicode property +definition "InCyrillicSupplementary" at t/propcharset_slow_to_compile +.t line 2378. # Looks like you failed 28 tests of 1734. # Looks like your test died just after 1734. t/propcharset_slow_to_compile....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 751-753, 755, 759, 892-894, 896, 900, 964-966, 968, + 972, 1339-1341, 1343, 1347, 1444-1446, 1448, 1455, 1506-1508 Failed 28/1734 tests, 98.39% okay t/properties_slow_to_compile.....NOK 609# Failed test (t/propertie +s_slow_to_compile.t at line 799) t/properties_slow_to_compile.....NOK 610# Failed test (t/propertie +s_slow_to_compile.t at line 800) t/properties_slow_to_compile.....NOK 611# Failed test (t/propertie +s_slow_to_compile.t at line 801) t/properties_slow_to_compile.....NOK 615# Failed test (t/propertie +s_slow_to_compile.t at line 805) t/properties_slow_to_compile.....NOK 1077# Failed test (t/properti +es_slow_to_compile.t at line 1522) t/properties_slow_to_compile.....NOK 1078# Failed test (t/properti +es_slow_to_compile.t at line 1523) t/properties_slow_to_compile.....NOK 1079# Failed test (t/properti +es_slow_to_compile.t at line 1524) t/properties_slow_to_compile.....NOK 1083# Failed test (t/properti +es_slow_to_compile.t at line 1528) t/properties_slow_to_compile.....NOK 1160# Failed test (t/properti +es_slow_to_compile.t at line 1649) t/properties_slow_to_compile.....NOK 1161# Failed test (t/properti +es_slow_to_compile.t at line 1650) t/properties_slow_to_compile.....NOK 1162# Failed test (t/properti +es_slow_to_compile.t at line 1651) t/properties_slow_to_compile.....NOK 1169# Failed test (t/properti +es_slow_to_compile.t at line 1658) t/properties_slow_to_compile.....NOK 1202# Failed test (t/properti +es_slow_to_compile.t at line 1715) t/properties_slow_to_compile.....NOK 1203# Failed test (t/properti +es_slow_to_compile.t at line 1716) t/properties_slow_to_compile.....NOK 1204# Failed test (t/properti +es_slow_to_compile.t at line 1717) t/properties_slow_to_compile.....NOK 1211# Failed test (t/properti +es_slow_to_compile.t at line 1724) t/properties_slow_to_compile.....ok 1392/0Can't find Unicode property +definition "InCyrillicSupplementary" at t/properties_slow_to_compile. +t line 2034. # Looks like you failed 16 tests of 1392. # Looks like your test died just after 1392. t/properties_slow_to_compile.....dubious + Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 609-611, 615, 1077-1079, 1083, 1160-1162, 1169, 120 +2-1204, 1211 Failed 16/1392 tests, 98.85% okay t/qinterp........................ok + t/repeat.........................ok + t/rulecode.......................ok + t/self...........................ok + t/stdrules.......................dubious + Test returned status 0 (wstat 11, 0xb) t/subrule........................ok + t/subst..........................ok + t/unimplemented..................dubious + Test returned status 255 (wstat 65280, 0xff00) after all the subtests completed successfully t/word...........................ok + Failed Test Stat Wstat Total Fail Failed List of + Failed ---------------------------------------------------------------------- +--------- t/continue.t 0 11 ?? ?? % ?? t/counted.t 0 11 ?? ?? % ?? t/der_grammar.t 0 11 ?? ?? % ?? t/error.t 255 65280 16 0 0.00% ?? t/grammar.t 0 11 ?? ?? % ?? t/named_cap.t 0 11 ?? ?? % ?? t/null.t 0 11 ?? ?? % ?? t/prior.t 9 2304 ?? ?? % ?? t/propcharset_slow_to_compile.t 255 65280 1734 28 1.61% 751-753 + 755 759 892-894 + 896 900 964-966 + 968 972 1339-13 +41 1343 1347 14 +44-1446 1448 14 +55 1506- 1508 t/properties_slow_to_compile.t 255 65280 1392 16 1.15% 609-611 + 615 1077-10 +79 1083 1160-11 +62 1169 1202-12 +04 1211 t/stdrules.t 0 11 ?? ?? % ?? t/unimplemented.t 255 65280 10 0 0.00% ?? Failed 12/41 test scripts, 70.73% okay. -95/4186 subtests failed, 102. +27% okay. make: *** [test_dynamic] Error 255