Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: problematic OO

by umbra (Acolyte)
on Aug 03, 2005 at 10:42 UTC ( #480429=note: print w/replies, xml ) Need Help??

in reply to problematic OO

I'm not OO Perl guru but in constructor (new sub) You declared $self as hashref but seems to me that You never initialize referred hash. All items like $self->{SUBJECT} or $self->{SUBJECT} are always undefined because You never assign something to them.

Then when calling You should do

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://480429]
[Corion]: 1nickt: Would be great, especially for naming parameters in @_.
[Corion]: When you pass an arrayref, you get to treat it like a local array. But then, I'm cautious with the experimental features, because just when I thought function signatures were a set thing, there is a proposal to use sub [ $foo, $bar ] { ... } to ...
[Corion]: ... declare the parameters, instead of the more common sub ($foo, $bar) { ... }

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2017-11-17 20:42 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (272 votes). Check out past polls.