Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: OO method wont parse

by toolic (Bishop)
on Aug 28, 2017 at 20:27 UTC ( #1198205=note: print w/replies, xml ) Need Help??


in reply to OO method wont parse

The errors disappear for me when I use all lower-case for the "sub" keyword (not "Sub") and when I declare your variables with my in the RowCount sub:
sub Fetch { my $class = shift; my $sql = $class->{SQL}; #return $sql->fetchrow_array(); } sub RowCount { my $class = shift; my $sql = $class->{SQL}; return $sql->rows; }

My text editor with syntax highlighting clearly showed the Sub as not being a keyword.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-01-29 07:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?