Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl Error - Can't call method "session" on an undefined value

by NetWallah (Canon)
on Apr 24, 2013 at 05:34 UTC ( [id://1030280]=note: print w/replies, xml ) Need Help??


in reply to Perl Error - Can't call method "session" on an undefined value

You will probably have to help yourself clear the error.

$c is being assigned a value from @_.

However, "@_" is not assigned a value.

@_ might me beaningful inside a subroutine (passed parameters), but your code does not show any "sub", so @_ is empty, and perl's complaint is reasonable, since $c does not contain any value (it is undef).

Your intentions for this code have not been expressed , and the code provided does not offer any clues, so we will not be able to assist.

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs

  • Comment on Re: Perl Error - Can't call method "session" on an undefined value

Replies are listed 'Best First'.
Re^1: Perl Error - Can't call method "session" on an undefined value
by manukm (Initiate) on Apr 24, 2013 at 10:24 UTC
    Actually I was trying to set session using catalyst perl.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2024-10-12 15:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.