Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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
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 cooling their heels in the Monastery: (4)
As of 2014-09-21 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls