home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / perl / info / lwall-quotes < prev    next >
Encoding:
Text File  |  1992-10-31  |  16.9 KB  |  385 lines

  1.     All language designers are arrogant.  Goes with the territory... :-)
  2.         --Larry Wall in <1991Jul13.010945.19157@netlabs.com
  3. %%
  4.     Although the Perl Slogan is There's More Than One Way to Do It, I hesitate
  5.     to make 10 ways to do something.  :-)
  6.             --Larry Wall in <9695@jpl-devvax.JPL.NASA.GOV>
  7. %%
  8. And don't tell me there isn't one bit of difference between null and space,
  9. because that's exactly how much difference there is.  :-)
  10.         --Larry Wall in <10209@jpl-devvax.JPL.NASA.GOV>
  11. %%
  12.       "And I don't like doing silly things (except on purpose)."
  13.         --Larry Wall in <1992Jul3.191825.14435@netlabs.com>
  14. %%
  15. :        And it goes against the grain of building small tools.
  16. Innocent, Your Honor.  Perl users build small tools all day long.
  17.         --Larry Wall in <1992Aug26.184221.29627@netlabs.com>
  18. %%
  19.                 /* And you'll never guess what the dog had */
  20.                 /*   in its mouth... */
  21.         --Larry Wall in stab.c from the perl source code
  22. %%
  23.     Because . doesn't match \n.  [\0-\377] is the most efficient way to match
  24.     everything currently.  Maybe \e should match everything.  And \E would
  25.     of course match nothing.   :-) --Larry Wall in <9847@jpl-devvax.JPL.NASA.GOV>
  26. %%
  27.     Be consistent.
  28.             --Larry Wall in the perl man page 
  29. %%
  30. Besides, including <std_ice_cubes.h> is a fatal error on machines that
  31. don't have it yet.  Bad language design, there...  :-)
  32.         --Larry Wall in <1991Aug22.220929.6857@netlabs.com>
  33. %%
  34. Besides, it's good to force C programmers to use the toolbox occasionally.  :-)
  35.         --Larry Wall in <1991May31.181659.28817@jpl-devvax.jpl.nasa.gov>
  36. %%
  37.     Besides, REAL computers have a rename() system call.    :-)
  38.                     --Larry Wall in <7937@jpl-devvax.JPL.NASA.GOV>
  39. %%
  40.     break;                          /* don't do magic till later */
  41.         --Larry Wall in stab.c from the perl source code
  42. %%
  43. But you have to allow a little for the desire to evangelize when you
  44. think you have good news.  
  45.         --Larry Wall in <1992Aug26.184221.29627@netlabs.com>
  46. %%
  47.     Chip Salzenberg sent me a complete patch to add System V IPC (msg, sem and
  48.     shm calls), so I added them.  If that bothers you, you can always undefine
  49.     them in config.sh.  :-) --Larry Wall in <9384@jpl-devvax.JPL.NASA.GOV>
  50. %%
  51.             /* dbmrefcnt--;  */     /* doesn't work, rats */
  52.         --Larry Wall in hash.c from the perl source code
  53. %%
  54.     #define NULL 0           /* silly thing is, we don't even use this */
  55.         --Larry Wall in perl.c from the perl source code
  56. %%
  57.     #define SIGILL 6         /* blech */
  58.         --Larry Wall in perl.c from the perl source code
  59. %%
  60.     Does the same as the system call of that name.
  61.     If you don't know what it does, don't worry about it.
  62.             --Larry Wall in the perl man page regarding chroot(2)
  63. %%
  64.     double value;                /* or your money back! */
  65.     short changed;               /* so triple your money back! */
  66.             --Larry Wall in cons.c from the perl source code
  67. %%
  68. Down that path lies madness.  On the other hand, the road to hell is
  69. paved with melting snowballs. --Larry Wall in <1992Jul2.222039.26476@netlabs.com>
  70. %%
  71.     echo "Congratulations.  You aren't running Eunice."
  72.         --Larry Wall in Configure from the perl distribution
  73. %%
  74.         echo "Hmmm...you don't have Berkeley networking in libc.a..."
  75.         echo "but the Wollongong group seems to have hacked it in."
  76.             --Larry Wall in Configure from the perl distribution
  77. %%
  78.     echo "ICK, NOTHING WORKED!!!  You may have to diddle the includes.";;
  79.             --Larry Wall in Configure from the perl distribution
  80. %%
  81. echo $package has manual pages available in source form.
  82. echo "However, you don't have nroff, so they're probably useless to you."
  83.     --Larry Wall in Configure from the perl distribution
  84. %%
  85.     echo "Your stdio isn't very std."
  86.             --Larry Wall in Configure from the perl distribution
  87. %%
  88.     #else /* !STDSTDIO */     /* The big, slow, and stupid way */
  89.         --Larry Wall in str.c from the perl source code
  90. %%
  91.     [End of diatribe.  We now return you to your regularly scheduled
  92.     programming...]
  93.         --Larry Wall in Configure from the perl distribution
  94. %%
  95.     Even if you aren't in doubt, consider the mental welfare of the person who
  96.     has to maintain the code after you, and who will probably put parens in
  97.     the wrong place.  --Larry Wall in the perl man page 
  98. %%
  99.     "Help save the world!"              --Larry Wall in README
  100. %%
  101.     Hey, I had to let awk be better at *something*...  :-)
  102.             --Larry Wall in <1991Nov7.200504.25280@netlabs.com>1
  103. %%
  104.     I already have too much problem with people thinking the efficiency of
  105.     a perl construct is related to its length.  On the other hand, I'm
  106.     perfectly capable of changing my mind next week...  :-) --lwall
  107. %%
  108.     I don't know if it's what you want, but it's what you get.  :-)
  109.             --Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>
  110. %%
  111.     I dunno, I dream in Perl sometimes...
  112.                     --Larry Wall in  <8538@jpl-devvax.JPL.NASA.GOV>
  113. %%
  114.     If I allowed "next $label" then I'd also have to allow "goto $label",
  115.     and I don't think you really want that...  :-) 
  116.             --Larry Wall in <1991Mar11.230002.27271@jpl-devvax.jpl.nasa.gov>
  117. %%
  118.     If I don't document something, it's usually either for a good reason,
  119.     or a bad reason.  In this case it's a good reason.  :-)
  120.             --Larry Wall in <1992Jan17.005405.16806@netlabs.com>
  121. %%
  122. "I find this a nice feature but it is not according to the documentation.
  123.    Or is it a BUG?"
  124. "Let's call it an accidental feature. :-)" Larry Wall in <6909@jpl-devvax.JPL.NASA.GOV>
  125. %%
  126.     if (instr(buf,sys_errlist[errno]))  /* you don't see this */
  127.         --Larry Wall in eval.c from the perl source code
  128. %%
  129.     if (rsfp = mypopen("/bin/mail root","w")) {     /* heh, heh */
  130.         --Larry Wall in perl.c from the perl source code
  131. %%
  132. If you consistently take an antagonistic approach, however, people are
  133. going to start thinking you're from New York.   :-)
  134.         --Larry Wall to Dan Bernstein in <10187@jpl-devvax.JPL.NASA.GOV>
  135. %%
  136.     If you want to program in C, program in C.  It's a nice language.  I
  137.     use it occasionally...   :-)
  138.             --Larry Wall in <7577@jpl-devvax.JPL.NASA.GOV>
  139. %%
  140. If you want to see useful Perl examples, we can certainly arrange to have
  141. comp.lang.misc flooded with them, but I don't think that would help the
  142. advance of civilization.  :-) --Larry Wall in <1992Mar5.180926.19041@netlabs.com>
  143. %%
  144. If you want your program to be readable, consider supplying the argument.
  145.             --Larry Wall in the perl man page 
  146. %%
  147.     I know it's weird, but it does make it easier to write poetry in perl.    :-)
  148.                     --Larry Wall in <7865@jpl-devvax.JPL.NASA.GOV>
  149. %%
  150.     I'll say it again for the logic impaired.
  151.         --Larry Wall
  152. %%
  153. I might be able to shoehorn a reference count in on top of the numeric
  154. value by disallowing multiple references on scalars with a numeric value,
  155.  but it wouldn't be as clean.  I do occasionally worry about that. --lwall
  156. %%
  157.     I'm sure that that could be indented more readably, but I'm scared of
  158.     the awk parser.             --Larry Wall in <6849@jpl-devvax.JPL.NASA.GOV>
  159. %%
  160. In general, if you think something isn't in Perl, try it out, because it
  161. usually is.  :-)
  162.         --Larry Wall in <1991Jul31.174523.9447@netlabs.com>
  163. %%
  164.     In general, they do what you want, unless you want consistency.
  165.             --Larry Wall in the perl man page
  166. %%
  167.     Interestingly enough, since subroutine declarations can come anywhere,
  168.     you wouldn't have to put BEGIN {} at the beginning, nor END {} at the
  169.     end.  Interesting, no?  I wonder if Henry would like it. :-) --lwall 
  170. %%
  171.     I think it's a new feature.  Don't tell anyone it was an accident.  :-)
  172.             --Larry Wall on s/foo/bar/eieio in <10911@jpl-devvax.JPL.NASA.GOV>
  173. %%
  174.     "It is easier to port a shell than a shell script."
  175.         --Larry Wall
  176. %%
  177. It is, of course, written in Perl.  Translation to C is left as an
  178. exercise for the reader.  :-)  --Larry Wall in <7448@jpl-devvax.JPL.NASA.GOV>
  179. %%
  180. It's all magic.  :-)    --Larry Wall in <7282@jpl-devvax.JPL.NASA.GOV>
  181. %%
  182.     It's documented in The Book, somewhere...
  183.             --Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>
  184. %%
  185. > (It's sorta like sed, but not.  It's sorta like awk, but not.  etc.)
  186.   Guilty as charged.  Perl is happily ugly, and happily derivative.
  187.         --Larry Wall in <1992Aug26.184221.29627@netlabs.com>
  188. %%
  189.     It's there as a sop to former Ada programmers.  :-)
  190.         --Larry Wall regarding 10_000_000 in <11556@jpl-devvax.JPL.NASA.GOV>
  191. %%
  192.     It won't be covered in the book.  The source code has to be useful for
  193.     something, after all...  :-)
  194.             --Larry Wall in <10160@jpl-devvax.JPL.NASA.GOV>
  195. %%
  196.     :  I've heard that there is a shell (bourne or csh)  to perl filter, does
  197.     :  anyone know of this or where I can get it?
  198.     Yeah, you filter it through Tom Christiansen.  :-)  --Larry Wall
  199. %%
  200. :       I've tried (in vi) "g/[a-z]\n[a-z]/s//_/"...but that doesn't
  201. : cut it.  Any ideas?  (I take it that it may be a two-pass sort of solution).
  202. In the first pass, install perl. :-) Larry Wall <6849@jpl-devvax.JPL.NASA.GOV>
  203. %%
  204.     I won't mention any names, because I don't want to get sun4's into
  205.     trouble...  :-)     --Larry Wall in <11333@jpl-devvax.JPL.NASA.GOV>
  206. %%
  207.     Just don't compare it with a real language, or you'll be unhappy...  :-)
  208.             --Larry Wall in <1992May12.190238.5667@netlabs.com>
  209. %%
  210.     Just don't create a file called -rf.  :-)
  211.             --Larry Wall in <11393@jpl-devvax.JPL.NASA.GOV>
  212. %%
  213.     last|perl -pe '$_ x=/(..:..)...(.*)/&&"'$1'"ge$1&&"'$1'"lt$2'
  214.     That's gonna be tough for Randal to beat...  :-)
  215.             --Larry Wall in  <1991Apr29.072206.5621@jpl-devvax.jpl.nasa.gov>
  216. %%
  217.     Let's say the docs present a simplified view of reality...    :-)
  218.             --Larry Wall in  <6940@jpl-devvax.JPL.NASA.GOV>
  219. %%
  220. Let us be charitable, and call it a misleading feature  :-)
  221.         --Larry Wall in <2609@jato.Jpl.Nasa.Gov>
  222. %%
  223. Lispers are among the best grads of the Sweep-It-Under-Someone-Else's-Carpet
  224. School of Simulated Simplicity.  [Was that sufficiently incendiary?  :-)]
  225.         --Larry Wall in <1992Jan10.201804.11926@netlabs.com
  226. %%
  227.     No, I'm not going to explain it.  If you can't figure it out, you didn't
  228.     want to know anyway...  :-)
  229.             --Larry Wall in <1991Aug7.180856.2854@netlabs.com>
  230. %%
  231.     /* now make a new head in the exact same spot */
  232.             --Larry Wall in cons.c from the perl source code
  233. %%
  234.     OK, enough hype.
  235.             --Larry Wall in the perl man page 
  236. %%
  237.     OOPS!  You naughty creature!  You didn't run Configure with sh!
  238.     I will attempt to remedy the situation by running sh for you...
  239.         --Larry Wall in Configure from the perl distribution
  240. %%
  241.     Perl is designed to give you several ways to do anything, so
  242.     consider picking the most readable one.
  243.             --Larry Wall in the perl man page
  244. %%
  245. Perl itself is usually pretty good about telling you what you shouldn't do. :-)
  246.         --Larry Wall in <11091@jpl-devvax.JPL.NASA.GOV>
  247. %%
  248.     Perl programming is an *empirical* science!  
  249.         --Larry Wall in <10226@jpl-devvax.JPL.NASA.GOV>
  250. %%
  251.     pos += screamnext[pos]  /* does this goof up anywhere? */
  252.         --Larry Wall in util.c from the perl source code
  253. %%
  254.     Q. Why is this so clumsy?
  255.     A. The trick is to use Perl's strengths rather than its weaknesses.
  256.             --Larry Wall in <8225@jpl-devvax.JPL.NASA.GOV>
  257. %%
  258.     Randal said it would be tough to do in sed.  He didn't say he didn't
  259.     understand sed.  Randal understands sed quite well.  Which is why he
  260.     uses Perl.   :-)  -- Larry Wall in <7874@jpl-devvax.JPL.NASA.GOV>
  261. %%
  262. Real programmers can write assembly code in any language.   :-)  
  263.                 --Larry Wall in  <8571@jpl-devvax.JPL.NASA.GOV>
  264. %%
  265.     Remember though that 
  266.         THERE IS NO GENERAL RULE FOR CONVERTING A LIST INTO A SCALAR.
  267.             --Larry Wall in the perl man page
  268. %%
  269.     s = (char*)(long)retval;                /* ouch */
  270.         --Larry Wall in doio.c from the perl source code
  271. %%
  272.     signal(i, SIG_DFL); /* crunch, crunch, crunch */
  273.         --Larry Wall in doarg.c from the perl source code
  274. %%
  275.     Sorry.  My testing organization is either too small, or too large, depending
  276.     on how you look at it.  :-)
  277.             --Larry Wall in <1991Apr22.175438.8564@jpl-devvax.jpl.nasa.gov>
  278. %%
  279.     stab_val(stab)->str_nok = 1;    /* what a wonderful hack! */
  280.         --Larry Wall in stab.c from the perl source code
  281. %%
  282.     str->str_pok |= SP_FBM;                     /* deep magic */
  283.     s = (unsigned char*)(str->str_ptr);         /* deeper magic */
  284.         --Larry Wall in util.c from the perl source code
  285. %%
  286. Tactical?  TACTICAL!?!?  Hey, buddy, we went from kilotons to megatons
  287. several minutes ago.  We don't need no stinkin' tactical nukes.
  288. (By the way, do you have change for 10 million people?) --lwall
  289. %%
  290.     That means I'll have to use $ans to suppress newlines now.  
  291.     Life is ridiculous. 
  292.         --Larry Wall in Configure from the perl distribution
  293. %%
  294.     The autodecrement is not magical.
  295.             --Larry Wall in the perl man page
  296. %%
  297.     The only disadvantage I see is that it would force everyone to get Perl.
  298.     Horrors.  :-)
  299.                     --Larry Wall in  <8854@jpl-devvax.JPL.NASA.GOV>
  300. %%
  301. *** The previous line contains the naughty word "$&".\n
  302.                 if /(ibm|apple|awk)/;      # :-)
  303.             --Larry Wall in the perl man page
  304. %%
  305. There ain't nothin' in this world that's worth being a snot over.
  306.         --Larry Wall in <1992Aug19.041614.6963@netlabs.com>
  307. %%
  308. There are many times when you want it to ignore the rest of the string just
  309. like atof() does.  Oddly enough, Perl calls atof().  How convenient.  :-)
  310.         --Larry Wall in <1991Jun24.231628.14446@jpl-devvax.jpl.nasa.gov>
  311. %%
  312. There are probably better ways to do that, but it would make the parser
  313. more complex.  I do, occasionally, struggle feebly against complexity...  :-)
  314.             --Larry Wall in <7886@jpl-devvax.JPL.NASA.GOV>
  315. %%
  316. There are still some other things to do, so don't think if I didn't fix
  317. your favorite bug that your bug report is in the bit bucket.  (It may be,
  318. but don't think it.  :-)  Larry Wall in <7238@jpl-devvax.JPL.NASA.GOV>
  319. %%
  320.     There is, however, a strange, musty smell in the air that reminds me of
  321.     something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
  322.         --Larry Wall in Configure from the perl distribution
  323. %%
  324.     "The road to hell is paved with melting snowballs."
  325.         --Larry Wall in  <1992Jul2.222039.26476@netlabs.com>
  326. %%
  327. /* This bit of chicanery makes a unary function followed by
  328.    a parenthesis into a function with one argument, highest precedence. */
  329.         --Larry Wall in toke.c from the perl source code
  330. %%
  331.     "...this does not mean that some of us should not want, in a rather
  332.     dispassionate sort of way, to put a bullet through csh's head."
  333.         Larry Wall in <1992Aug6.221512.5963@netlabs.com>
  334. %%
  335.     > This made me wonder, suddenly: can telnet be written in perl?
  336.     Of course it can be written in Perl.  Now if you'd said nroff, 
  337.     that would be more challenging...   --Larry Wall
  338. %%
  339.     Though I'll admit readability suffers slightly... 
  340.                     --Larry Wall in <2969@jato.Jpl.Nasa.Gov>
  341. %%
  342.     tmps_base = tmps_max;                /* protect our mortal string */
  343.         --Larry Wall in stab.c from the perl source code
  344. %%
  345. Unix is like a toll road on which you have to stop every 50 feet to
  346. pay another nickel.  But hey!  You only feel 5 cents poorer each time.
  347.     --Larry Wall in <1992Aug13.192357.15731@netlabs.com>
  348. %%
  349.     "We all agree on the necessity of compromise.  We just can't agree on
  350.      when it's necessary to compromise."
  351.         --Larry Wall in  <1991Nov13.194420.28091@netlabs.com>
  352. %%
  353.     /* we have tried to make this normal case as abnormal as possible */
  354.             --Larry Wall in cmd.c from the perl source code
  355. %%
  356.     What about WRITING it first and rationalizing it afterwords?  :-)
  357.                     --Larry Wall in <8162@jpl-devvax.JPL.NASA.GOV>
  358. %%
  359. : 1.  What is the possibility of this being added in the future?
  360. In the near future, the probability is close to zero.  In the distant
  361. future, I'll be dead, and posterity can do whatever they like...  :-) --lwall
  362. %%
  363.     "What is the sound of Perl?  Is it not the sound of a wall that
  364.      people have stopped banging their heads against?"
  365.         --Larry Wall in <1992Aug26.184221.29627@netlabs.com>
  366. %%
  367.     When in doubt, parenthesize.  At the very least it will let some
  368.     poor schmuck bounce on the % key in vi.
  369.             --Larry Wall in the perl man page 
  370. %%
  371.     "You can't have filenames longer than 14 chars.  
  372.      You can't even think about them!"
  373.         --Larry Wall in Configure from the perl distribution
  374. %%
  375. You have to admit that it's difficult to misplace the Perl sources.  :-)
  376.         --Larry Wall in <1992Aug26.184221.29627@netlabs.com>
  377. %%
  378. Your csh still thinks true is false.  Write to your vendor today and tell
  379. them that next year Configure ought to "rm /bin/csh" unless they fix their
  380. blasted shell. :-)   --Larry Wall in Configure from the perl distribution
  381. %%
  382. You want it in one line?  Does it have to fit in 80 columns?   :-)
  383.                 --Larry Wall in <7349@jpl-devvax.JPL.NASA.GOV>
  384. %%
  385.