Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

defclass and defmethod

by opensourcer (Monk)
on Jul 11, 2007 at 05:48 UTC ( #625957=perlquestion: print w/ replies, xml ) Need Help??
opensourcer has asked for the wisdom of the Perl Monks concerning the following question:

hi, what are these defclass and defmethod, i saw them in one of the examples.
defclass EXAMPLE; defmethod new: class { ..... } defmethod printone { ..... } sub othermethod { .... }
i have searched for documentation couldn't find about them. Can any 1 explain the hole concept or give me the url to the doc.
thanks

Comment on defclass and defmethod
Download Code
Replies are listed 'Best First'.
Re: defclass and defmethod
by ikegami (Pope) on Jul 11, 2007 at 08:37 UTC
    That's not valid Perl syntax. If you can run this, you're probably using a Source Filter. Source filters are modules that generate Perl code from non-Perl files before Perl sees it.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2015-08-30 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (351 votes), past polls