Skip to content

Detect use of constants #10

Open
Open
@krismatthews

Description

@krismatthews

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");

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions