Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

We can all make things look complicated.

You: John, does "print" refer to: (1) putting ink on paper; (2) adding some data to an output buffer (possibly encoding it first) that will, when flushed, be pushed into an output stream that will probably result in its being stored in a file or displayed on a computer monitor, but is, in fact, highly unlikely to involve ink or paper?

John: ???

DATA is not a standard feature of modern programming languages, but it's really not that strange in the grand scheme of things. There have been plenty of other languages that do provide equivalent features, right back to the good old 8-bit BASICs found in every techie home throughout the 1980s.

And, more to the point, __DATA__ is a pretty common feature in the Perl world. It's a standard tool in nearly all the test suites I've ever seen, both on CPAN and in proprietary internal code. I'd go so far as to say that if I was giving a job interview to someone who claimed to be an experienced Perl developer, but didn't have the faintest inkling that __DATA__ had a special meaning, then I'd fail them on the spot.


In reply to Re^5: Hidden features of Perl by Porculus
in thread Hidden features of Perl by vxp

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 romping around the Monastery: (6)
As of 2024-04-19 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found