Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Perl Error - Can't call method "session" on an undefined valueby NetWallah (Canon) |
on Apr 24, 2013 at 05:34 UTC ( [id://1030280]=note: print w/replies, xml ) | Need Help?? |
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!'"
In Section
Seekers of Perl Wisdom
|
|