Your message dated Sat, 2 Apr 2016 12:03:10 +0100 with message-id <[email protected]> and subject line Re: Bug#613766: hardwired feature numbers in man page has caused the Debian Bug report #613766, regarding hardwired feature numbers in man page to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 613766: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613766 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: perl-doc Version: 5.10.1-17 Severity: wishlist File: /usr/share/man/man1/perlsyn.1.gz First you say use feature "switch"; then you say use feature ":5.10"; Shouldn't both be use feature "switch"; ? Switch statements Starting from Perl 5.10, you can say use feature "switch"; which enables a switch feature that is closely based on the Perl 6 proposal. The keywords "given" and "when" are analogous to "switch" and "case" in other languages, so the code above could be written as given($_) { when (/^abc/) { $abc = 1; } when (/^def/) { $def = 1; } when (/^xyz/) { $xyz = 1; } default { $nothing = 1; } } This construct is very flexible and powerful. For example: use feature ":5.10"; given($foo) { when (undef) {
--- End Message ---
--- Begin Message ---On Thu, Feb 17, 2011 at 10:28:58AM +0800, [email protected] wrote: > Package: perl-doc > Version: 5.10.1-17 > Severity: wishlist > File: /usr/share/man/man1/perlsyn.1.gz > > First you say > use feature "switch"; > then you say > use feature ":5.10"; > Shouldn't both be > use feature "switch"; > ? The topic in question has been rewritten and no longer contains this anomaly. Closing. Dominic.
--- End Message ---

