in reply to how check the first release of a new operand?

Syntax::Construct allows you to declare the operators you use in your code. Its documentation tells you what Perl release the feature comes from.

See the introduced and removed subroutines there to programmatically query for features, once you know their names.

Replies are listed 'Best First'.
Re^2: how check the first release of a new operand?
by xiaoyafeng (Deacon) on Dec 07, 2020 at 09:21 UTC
    Thanks! why this excellent/useful module is not introduced into Core modules yet?




    I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

      Because it's intended to be "forward compatible", i.e. you should use the latest version of Syntax::Construct from CPAN as it knows about the versions of Perl that are newer than your current Perl version. (It's still possible to update core modules from CPAN, but I fear it's not that common).

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