Skip to content

3 !=3 is not parsed as 3 != 3 #7

@FROGGS

Description

@FROGGS

std thinks that 3 !=3 is about assigning the negated three instead of a comparision.
See: https://rt.perl.org/Ticket/Update.html?id=121108

./viv -e 'say 1 != 3'
[...]
└─VAST::SYM_infix__S_BangEqual, BEG: 6, END: 8, SYM: !=,
TEXT: !=, WS: 1, _from: 8, _op: VAST::infix__S_BangEqual,
_pos: 8, _specific: 1, assoc: chain, dba: chaining,
diffy: 1, iffy: 1, prec: m=, pure: 1
[...]

./viv -e 'say 1 !=3'
[...]
└─VAST::SYM_infix__S_Equal, BEG: 7, END: 8, SYM: =, TEXT: =,
_from: 8, _op: VAST::infix__S_Equal, _pos: 8,
_specific: 1, assoc: right, dba: list assignment,
fiddly: 1, prec: i=, pure: 0
[...]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions