Skip to content

Commit

Permalink
perldelta: list some switch/smart match modules
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Aug 19, 2024
1 parent 86ce17e commit 1518f4a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions pod/perldelta.pod
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,31 @@ They were deprecated in Perl v5.38.0 and scheduled for removal in Perl

These features have now been entirely removed.

If you code currently uses C<given>/C<when> or smart match this can be
replaced with an C<if>/C<else> chain, or there is a variety of
alternative "switch" or smart match implementations on CPAN, in no
particular order:

=over

=item *

L<Syntax::Infix::Smartmatch|https://metacpan.org/pod/Syntax::Infix::Smartmatch>

=item *

L<Switch::Back|https://metacpan.org/pod/Switch::Back>

=item *

L<Syntax::Operator::Matches|https://metacpan.org/pod/Syntax::Operator::Matches>

=item *

L<Syntax::Keyword::Match|https://metacpan.org/pod/Syntax::Keyword::Match>

=back

[github #22370]

=head1 Deprecations
Expand Down

0 comments on commit 1518f4a

Please sign in to comment.