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

Re: Regarding Perl Class Object

by Sidhekin (Priest)
on Feb 22, 2007 at 06:46 UTC ( #601494=note: print w/replies, xml ) Need Help??


in reply to Regarding Perl Class Object

Your new method is returning $self->{FORM_VAR}, which is undefined. You want to return $self, your newly created and blessed object.

And you want to lose those prototypes.

Oh, and you want to use strict.

... which will lead you to an error in your name method, where $self is undeclared and undefined. You'll want my $self = shift;

... and then you might want to look into using packages other than main. :)

print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2018-11-15 14:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (186 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!