Skip to content

scalarref interpolation using postfix deref inside a string is misparsed #18179

Open
@karenetheridge

Description

@karenetheridge

to reproduce (I tried this on both 5.26.3 and 5.33.2 with the same results):

$ perl -wle'my @list = ( \"hello" );  print $list[0]->$*'
hello

$ perl -wle'my @list = ( \"hello" );  print "$list[0]->$*"'
$* is no longer supported as of Perl 5.30 at -e line 1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions