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

Perl: can't handle postfix dereference #1619

Closed
Phroneris opened this issue Nov 6, 2020 · 0 comments · Fixed by #1625
Closed

Perl: can't handle postfix dereference #1619

Phroneris opened this issue Nov 6, 2020 · 0 comments · Fixed by #1625
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@Phroneris
Copy link

Name of the lexer

  • Perl

Code samples

  • *; and # on the second line result in errors.

    my $arr_ref = ['a' .. 'g'];
    my @arr = $arr_ref->@*; # dereference
    print @arr;
    # Output > abcdefg
  • [ in @[2 .. 5] results in an error.

    my $arr_ref = ['a' .. 'g'];
    my @arr_sliced = $arr_ref->@[2 .. 5]; # slice
    print @arr_sliced;
    # Output > cdef

Additional context

@Phroneris Phroneris added the bugfix-request A request for a bugfix to be developed. label Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant