My guess is that Larry Wall wanted to add some amusement for those divine souls that wander through perl source trying to increase the quality of our lives. Whoever it was, they put quotes from Tolkien's Lord of the Rings trilogy into the perl source. Some of my personal favorites include:
in run.c:
/*
* "Away now, Shadowfax! Run, greatheart, run as you have never run before!
* Now we are come to the lands where you were foaled, and every stone you
* know. Run now! Hope is in speed!" --Gandalf
*/
in op.c:
/*
* "You see: Mr. Drogo, he married poor Miss Primula Brandybuck. She was
* our Mr. Bilbo's first cousin on the mother's side (her mother being the
* youngest of the Old Took's daughters); and Mr. Drogo was his second
* cousin. So Mr. Frodo is his first *and* second cousin, once removed
* either way, as the saying is, if you follow me." --the Gaffer
*/
in utf8.c:
/*
* 'What a fix!' said Sam. 'That's the one place in all the lands we've ever
* heard of that we don't want to see any closer; and that's the one place
* we're trying to get to! And that's just where we can't get, nohow.'
*
* 'Well do I understand your speech,' he answered in the same language;
* 'yet few strangers do so. Why then do you not speak in the Common Tongue,
* as is the custom in the West, if you wish to be answered?'
*
* ...the travellers perceived that the floor was paved with stones of many
* hues; branching runes and strange devices intertwined beneath their feet.
*/
and finally, the ubiquitous, in regexec.c:
/*
* "One Ring to rule them all, One Ring to find them..."
*/
These seem to be the most appropriate and most amusing. Of those at perlmonks who go through perl source, what are your favorites? In fact, does your distribution have them? This is from perl-5.6.0 for reference.
Someone went through a lot of trouble to find apropos quotes; whoever that is, thank you.
jynx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Legends walking amongst the perl code...
by merlyn (Sage) on Feb 09, 2001 at 04:30 UTC | |
|
Re: Legends walking amongst the perl code...
by robsv (Curate) on Feb 09, 2001 at 03:55 UTC | |
|
Re: Legends walking amongst the perl code...
by vroom (His Eminence) on Feb 09, 2001 at 09:57 UTC | |
|
Re: Legends walking amongst the perl code...
by turnstep (Parson) on Feb 09, 2001 at 02:19 UTC | |
|
Re: Legends walking amongst the perl code...
by turnstep (Parson) on Feb 10, 2001 at 07:56 UTC | |
|
Re: Legends walking amongst the perl code...
by arturo (Vicar) on Feb 09, 2001 at 02:12 UTC | |
by tadman (Prior) on Feb 09, 2001 at 07:49 UTC | |
by jeffa (Bishop) on Feb 09, 2001 at 18:31 UTC |