Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Match object returned by calling a regex directly does not have a .perl method #1215

Closed
p6rt opened this issue Aug 9, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 9, 2009

Migrated from rt.perl.org#68346 (status was 'rejected')

Searchable as RT68346$

@p6rt
Copy link
Author

p6rt commented Aug 9, 2009

From @masak

<masak> rakudo​: regex foo { foo }; say foo('foo').perl
<p6eval> rakudo 5667dc​: OUTPUT«Method 'perl' not found for invocant of
class 'PGE;Match'␤»
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Sep 26, 2009

From @pmichaud

On Sun Aug 09 06​:27​:17 2009, masak wrote​:

<masak> rakudo​: regex foo { foo }; say foo('foo').perl
<p6eval> rakudo 5667dc​: OUTPUT«Method 'perl' not found for invocant of
class 'PGE;Match'␤»
* masak submits rakudobug

Latest discussion is that calling regexes directly will not return Match
objects. See http://irclog.perlgeek.de/perl6/2009-09-25#i_1539591 .

Beyond that, it's not clear that one can pass a simple string to a
Regex; it may require creating a Cursor first (since regexes are really
methods requiring a Cursor invocant).

Pm

@p6rt
Copy link
Author

p6rt commented Sep 26, 2009

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

From @moritz

The code now say Method '!cursor_start' not found for invocant of class
'Str' because it treats the argument to the regex as a Cursor. Which
seems to be OK. Closing without tests, because the spec isn't very
explicit here.

@p6rt
Copy link
Author

p6rt commented Jan 8, 2012

@moritz - Status changed from 'open' to 'rejected'

@p6rt p6rt closed this as completed Jan 8, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant