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

Regex returned by method has duff .perl #5568

Open
p6rt opened this issue Aug 14, 2016 · 2 comments
Open

Regex returned by method has duff .perl #5568

p6rt opened this issue Aug 14, 2016 · 2 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 14, 2016

Migrated from rt.perl.org#128928 (status was 'new')

Searchable as RT128928$

@p6rt
Copy link
Author

p6rt commented Aug 14, 2016

From zefram@fysh.org

(method { /foo/ })(2).perl
method /foo/

This .perl result does not parse as Perl code, and is therefore faulty.
Of the situations that I've tried, this only happens to Regex values
(not Int, Str, Pair, etc.), and only when the called function is declared
as a method (not sub, bare block, or pointy block).

-zefram

@p6rt
Copy link
Author

p6rt commented Aug 15, 2016

From zefram@fysh.org

Additional​: this also happens with submethods​:

(submethod { /foo/ })(2).perl
submethod /foo/

-zefram

@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