develooper Front page | perl.perl5.porters | Postings from April 2018

Documentation improvement

Thread Next
From:
KES
Date:
April 12, 2018 14:33
Subject:
Documentation improvement
Message ID:
2311271523543577@web36j.yandex.ru
Hi.

It is a bit ambiguous where pragma is limited:

On the `warnings` [page](https://perldoc.perl.org/warnings.html)

>This means that the scope of the warning pragma is limited to the enclosing block

but on the `strict` [page](https://perldoc.perl.org/strict.html)

>The effect of this pragma is limited to the current file or scope block

And after reading `my` [page](https://perldoc.perl.org/functions/my.html) it is more ambiguous about limitation for pragma:

>A my declares the listed variables to be local (lexically) to the enclosing block, file, or eval


if pragma is limited to 'eval' too it should be explicitly documented on corresponding pages

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