Subject: | Cannot declare multiple constants in one use statement |
This is the example from documentation:
$ perl -Mstrict -MData::Dumper
use Constant::FromGlobal {env => 1}, "DSN", MAX_FOO => {int => 1, default => 3};
print Dumper(DSN, MAX_FOO);
Bareword "MAX_FOO" not allowed while "strict subs" in use at - line 2.
Execution of - aborted due to compilation errors.
I sent a pull request with a patch that fixes this problem: https://github.com/neilbowers/constant-fromglobal/pull/1