Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: How to syntax-check Catalyst code which throws 'Invalid CODE attributes' errors?

by Your Mother (Archbishop)
on Jun 09, 2021 at 04:23 UTC ( [id://11133675]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -c -e 'sub taco :Chained("/") :PathPart("foo") : CaptureArgs(0) {
    +}'
    Invalid CODE attributes: Chained("/") : PathPart("foo") : CaptureArgs(
    +0) at -e line 1.
    BEGIN failed--compilation aborted at -e line 1.
    
  2. or download this
    perl -c -e 'use parent "Catalyst::Controller"; sub taco :Chained("/") 
    +:PathPart("foo") : CaptureArgs(0) {}'
    -e syntax OK
    
  3. or download this
    # emacs/vi UseMe.pm
    package UseMe;
    ...
    
    perl -c -e 'use UseMe'
    rm -rf /-e syntax OK
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11133675]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-25 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found