Yes, it isn't trapped at compile time:
$ perl '-mfeature=say' -cw 1174218.pl Name "main::var" used only once: possible typo at 1174218.pl line 7. 1174218.pl syntax OK
In reply to Re^3: strict "vars" mode for hash key literals?
by hippo
in thread strict "vars" mode for hash key literals?
by perlancar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |