in reply to Re: What's going on here?
in thread What's going on here?

Good catch about the version string but I would only say The -> operator is called on this string which interprets it as a class name. It has nothing to do with version string, e.g. 42->x does the same. I think.

Replies are listed 'Best First'.
Re^3: What's going on here?
by choroba (Cardinal) on Jul 13, 2023 at 09:53 UTC
    Yes, 42 is turned into the string "42" which is interpreted as a class name. Basically, anything that's not a reference is stringified by the arrow operator.

    Update: See The Arrow Operator in perldoc.

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]