Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: The science fiction writer who most personifies Perl is:

by ww (Bishop)
on Jul 02, 2010 at 02:49 UTC ( #847661=note: print w/ replies, xml ) Need Help??


in reply to Re: The science fiction writer who most personifies Perl is:
in thread The science fiction writer who most personifies Perl is:

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...."


Comment on Re^2: The science fiction writer who most personifies Perl is:
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://847661]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2014-04-20 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls