Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 ( #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? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2022-05-19 19:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (72 votes). Check out past polls.

    Notices?