-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warn on some format-related variables when not using formats #14478
Comments
From @epaCreated by @epaFormats are a long-standing feature of perl which many programmers and I am particularly thinking of $%, 'the current page number', and However, they can hide typos in code, e.g. $->[0] for $_->[0]. Please add a warning at run time if these builtin variables are It is possible that other format-related variables are set up by some Perl Info
|
From @tonycozOn Fri Feb 06 05:47:14 2015, eda@waniasset.com wrote:
An alternative might be: https://metacpan.org/pod/Perl::Critic::Policy::Variables::ProhibitEvilVariables As to warning on those variables, it's possible format is being done somewhere the compiler doesn't see yet, or won't see until runtime. Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @epaTony Cook via RT <perlbug-followup <at> perl.org> writes:
Indeed - which is why this would have to be a run-time warning, A global setting 'no formats' would be a way to disable these variables -- |
Migrated from rt.perl.org#123751 (status was 'open')
Searchable as RT123751$
The text was updated successfully, but these errors were encountered: