in reply to How to syntax-check Catalyst code which throws 'Invalid CODE attributes' errors?
Nuke the Attributes pragma.
echo "package Attributes;1" > /tmp/Attributes.pm perl -c -I/tmp file-to-test.pl
5' EDIT: I don't know Catalyst or Moose, so if it's attributes you meant, just lowercase the above. And make sure -I/tmp is before any other -I
Update:
# file ./strict.pm package strict;1
perl -I. -Mstrict -e '$x=42' perl -Mstrict -e '$x=42' ouch!
bw, bliako
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to syntax-check Catalyst code which throws 'Invalid CODE attributes' errors?
by LittleJack (Beadle) on Jun 10, 2021 at 01:36 UTC | |
by Your Mother (Archbishop) on Jun 10, 2021 at 03:28 UTC | |
by bliako (Abbot) on Jun 10, 2021 at 07:09 UTC | |
by Your Mother (Archbishop) on Jun 10, 2021 at 07:15 UTC | |
by bliako (Abbot) on Jun 10, 2021 at 07:35 UTC |