Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: How do YOU do OO in Perl?

by Anonymous Monk
on Oct 08, 2003 at 12:03 UTC ( #297547=note: print w/ replies, xml ) Need Help??

in reply to How do YOU do OO in Perl?

I exclusivly use Class::Maker, because i wrote it. I exclusivly write robust, deluxe, fancy, feature-rich, badly-documented stuff ;)

Newly i use it in combination with Data::Type:

class 'Idiot', { public => { string => [ qw( name title ) ], int => [ qw( score ) ], }, types => { string => STD::VARCHAR(80), int => STD::INTEGER, } }; my $murat = new Idiot name => 'murat', title => 'Mr.', score => 10; # + out of 10


Edit by tye, preserve formatting

Comment on Re: How do YOU do OO in Perl?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-11-30 02:10 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (756 votes), past polls