Skip to content
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

Detect use of constants #10

Open
krismatthews opened this issue Dec 31, 2013 · 0 comments
Open

Detect use of constants #10

krismatthews opened this issue Dec 31, 2013 · 0 comments

Comments

@krismatthews
Copy link

In a perfect world, it would be nice if constants were detected and ignored as safe:

use Const::Fast;

const my $FOOBAR => 12;

...

$dbh->do("SELECT name FROM categories WHERE id = $FOOBAR");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant