develooper Front page | perl.perl5.porters | Postings from August 2009

RE: [DOC] Modernization: perlsyn

Thread Previous | Thread Next
From:
vkonovalov
Date:
August 30, 2009 22:45
Subject:
RE: [DOC] Modernization: perlsyn
Message ID:
35BF8D9716175C43BB9D67CA60CC345E119133CC@FRMRSSXCHMBSC2.dc-m.alcatel-lucent.com
> @@ -496,6 +496,7 @@ block is optional.
> 
>  The BLOCK construct can be used to emulate case structures.
> 
> +    # Don't use this from perl 5.10 on, use feature "switch" instead
>      SWITCH: {
>         if (/^abc/) { $abc = 1; last SWITCH; }
>         if (/^def/) { $def = 1; last SWITCH; }
> @@ -841,7 +842,7 @@ and your documentation text freely, as in
> 

what?
placing essential explanations within the comment?
Where is the declared consistency?

And, user must learn to write such a comments?
CODE CODE CODE # I must be using "switch" from now on
CODE CODE CODE

:)


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About