Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Read the book...while out-of-reach of the net.

Typed in the code.

Didn't get a t-shirt; didn't even get the code to pass -c but didn't get any useful info by adding strict, warnings, diagnostics, etc. ad nauseum.

Proofread... repeatedly. To no avail. (Remember: the one-eyed man is king in a world of the blind)

Lo and behold: your wiki ref led me eventually to a Stevenson site where I found this:

13. Hey, the perl script doesn't work! What's the deal?

The production people at the publisher tried valiantly to get the perl script typeset without any errors, but one error did slip in. It is located on the eighth line. Where the book says
$o=~s/.chr((
and so on, it SHOULD say
$o=~s/./chr((
and so on.

And following a few links further, http://www.ciphergoth.org/crypto/solitaire/perl-sol and http://www.ciphergoth.org/crypto/solitaire/c-sol.c

Woot!

Update 20100704: added link to Stevenson's errata in para beginning "Lo and...."


In reply to Re^2: The science fiction writer who most personifies Perl is: by ww
in thread The science fiction writer who most personifies Perl is: by apl

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: (8)
As of 2024-03-29 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found