Subject: | documentation error in Types::Standard vis-à-vis coercions |
The "Coercions" section in Types::Standard suggests using the overloaded "+" operator, which I believe is no longer possible. The example code given for Join results in an error consistent with removal of that operator:
% perl <<'EOF'
Show quoted text
> use strict;
> use warnings;
> use Types::Standard qw( Str Join );
> my $FileLines = Str + Join["\n"];
> EOF
Argument "__ANON__" isn't numeric in addition (+) at - line 4.
Argument "Str" isn't numeric in addition (+) at - line 4.