Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

I thought about this for a while.

There are definitely good reasons for beginners to be exposed the idiom in question and all of its facets. It is a noble idea to do something to increase awareness with whichever approach seems appropriate. However, I believe writing a module is ineffective in this case.

A beginner will benefit greatly for reading and understanding all the various details which comprise this idiom. However, that implies reading the code you used, not dropping a blackbox tnto one's code.

For the latter purpose, File::Slurp fits the bill perfectly.

For the former purpose, a detailed tutorial that explains the nooks and crannies seems to be the way to go. I don't think making it available as a module will achieve any increase in awareness - beginners more so than anyone else tend to not even take a cursory look into the guts of modules.

Note also that as discussed in the node Juerd referenced, the snippet as is is broken. And understanding why that is, actually, will benefit a beginner even more. There are dozens of lessons to be had in this snippet. But one has to read it and have it explained to learn them.

Makeshifts last the longest.


In reply to Re^2: Slurp by Aristotle
in thread Slurp by Juerd

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 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? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2021-12-08 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    R or B?



    Results (36 votes). Check out past polls.

    Notices?