in reply to RE: Can perl be anything like Java?
in thread Can perl be anything like Java?

Your wish is "The Damian"'s command...

See Class::Contract. Works with existing Perl, although features similar to this are also proposed as being part of the Perl6 core.

-- Randal L. Schwartz, Perl hacker

  • Comment on RE: RE: Can perl be anything like Java?

Replies are listed 'Best First'.
RE: RE: RE: Can perl be anything like Java?
by d_i_r_t_y (Monk) on Sep 22, 2000 at 02:58 UTC
    ...and we are both australian... i wonder what that means? ;-)

    indeed, i had seen Class::Contract, and while in the desired direction, syntactically, it's a little ugly and deviates too much from my colleague's styles for me to force them to submit to the same style when they use some of my code.

    i don't think i'll be completely satisfied until we see what comes of the RFC's for perl6. the repeated calls for more and tighter OO support is sure encouraging... combine this with an OOP-tailored enhanced version of pod a la javadoc for the ultimate in perl API auto-documentation and the world is ours.

    it would be a massive victory for the Perl way if one will be able to code OOP in perl as strictly as java (ie with strong typing, exceptions and so forth) with the simple addition of some object pragma -- and then to turn around and write a 10 line text filter to clean up some windows-turkey's excel spreadsheet....... ;-)

    thanks for the reply,
    j.a.dirty.p.h