[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#580059: ITP: libswitch-perl -- A switch statement for Perl



Dominic Hargreaves <dom@earth.li> writes:

> * Package name    : libswitch-perl
>   Version         : 2.16
>   Upstream Author : Damian Conway <damian@conway.org>
> * URL             : http://search.cpan.org/dist/Switch/
> * License         : Perl
>   Programming Lang: Perl
>   Description     : A switch statement for Perl
>
> The Switch.pm module implements a generalized case mechanism that covers many
> possible combinations of switch and case values.

Is there a sane reason for wanting to include this? 

For perl 5.10 and later you have the given/when statement which does
the same in a much less fragile way. Please don't write new code using
Switch.pm module.

At least add a big warning in the description that this is a obsolete
module and using given/when with perl 5.10 is very much prefered.

//Makholm


Reply to: