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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
You keep using that word ("syntax"). I do not think it means what you think it means.

Syntax, as far as I know (and I am no linguist) is the arrangement of "words" into "sentences" as described by or conforming to a grammer. When I say "perl's OO syntax", I mean the various keywords/operators in perl that when combined in a certain way, create OO perl code. What do you think I am meaning when I say "syntax"? Please explain, or correct me if I am wrong in my thinking.

As for use base, yes you can look at it as a keyword with a space in it, but that does not make it a keyword. If you were stuck on a desert island with just an interpreter and no modules, you would have to revert to the ugly @ISA = qw(Bar); form (although I suspsect you would likely just implement your own base pragma).

Please note as well that I make my living writing OO perl code and enjoy I enjoy doing it very much. But having to work with it every day has convinced me that there is room for improvement.


In reply to Re: Re: Re: Re: Re: Re: Re: Functional Inside Out Closure Objects by stvn
in thread Functional Inside Out Closure Objects by fletcher_the_dog

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-06-19 00:31 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.