Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I expect that this is not an oversight, but is rather part of the Perl philosophy.
Think again. Since the time that Perl 5 came out, not over 10 years ago, maybe one or two new keywords have been added to the language, pos being one of them. For the rest, we are stuck with what was in it from the days of Perl 4. And in those days, there were no modules, and definitely no loadable dynamic extensions, so either something was in the language, or you had to write it in Pure Perl. (Or you had to build a special customized Perl binary, like OraPerl and SybPerl.)

As a result, there's quite a few of rarely used keywords in the kernel, like gethostbyname which didn't even get its own private entry in perlfunc, while ordinary others like cwd are strangely missing. I'm quite sure that, if they didn't care about backward compatibility, a lot of those old keywords would be kicked out into their own module, such as the oddball functions related to sockets: connect, accept, bind, listen, recv, send, and a couple of even more obscure ones. It's only because perl 4 had them (and had to have them, if you wanted to allow people to write network software in plain Perl), that they're in the language.

These days, if people want a new keyword, they just ave to write a module (or an XS module, if it has to run very fast). For most applications, that suffices. That's why in the last 10 years only a few new keywords have effectively been added — keywords that likely couldn't have been added to the language in any other way. Like pos.


In reply to Re: Mystery of missing functions by bart
in thread Mystery of missing functions by throop

Title:
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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (1)
As of 2024-04-25 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found