]> granicus.if.org Git - fortune-mod/blob - fortune-mod/datfiles/perl
check for overflow
[fortune-mod] / fortune-mod / datfiles / perl
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.   :-)
26                 -- Larry Wall in <9847@jpl-devvax.JPL.NASA.GOV>
27 %
28 Be consistent.
29                 -- Larry Wall in the perl man page
30 %
31 Besides, including <std_ice_cubes.h> is a fatal error on machines that
32 don't have it yet.  Bad language design, there...  :-)
33                 -- Larry Wall in <1991Aug22.220929.6857@netlabs.com>
34 %
35 Besides, it's good to force C programmers to use the toolbox occasionally.  :-)
36                 -- Larry Wall in <1991May31.181659.28817@jpl-devvax.jpl.nasa.gov>
37 %
38 Besides, REAL computers have a rename() system call.    :-)
39                 -- Larry Wall in <7937@jpl-devvax.JPL.NASA.GOV>
40 %
41 break;                          /* don't do magic till later */
42                 -- Larry Wall in stab.c from the perl source code
43 %
44 But you have to allow a little for the desire to evangelize when you
45 think you have good news.
46                 -- Larry Wall in <1992Aug26.184221.29627@netlabs.com>
47 %
48 Chip Salzenberg sent me a complete patch to add System V IPC (msg, sem and
49 shm calls), so I added them.  If that bothers you, you can always undefine
50 them in config.sh.  :-) -- Larry Wall in <9384@jpl-devvax.JPL.NASA.GOV>
51 %
52 /* dbmrefcnt--;  */     /* doesn't work, rats */
53                 -- Larry Wall in hash.c from the perl source code
54 %
55 #define NULL 0           /* silly thing is, we don't even use this */
56                 -- Larry Wall in perl.c from the perl source code
57 %
58 #define SIGILL 6         /* blech */
59                 -- Larry Wall in perl.c from the perl source code
60 %
61 Does the same as the system call of that name.
62 If you don't know what it does, don't worry about it.
63                 -- Larry Wall in the perl man page regarding chroot(2)
64 %
65 double value;                /* or your money back! */
66 short changed;               /* so triple your money back! */
67                 -- Larry Wall in cons.c from the perl source code
68 %
69 Down that path lies madness.  On the other hand, the road to hell is
70 paved with melting snowballs.
71                 -- Larry Wall in <1992Jul2.222039.26476@netlabs.com>
72 %
73 echo "Congratulations.  You aren't running Eunice."
74                 -- Larry Wall in Configure from the perl distribution
75 %
76 echo "Hmmm...you don't have Berkeley networking in libc.a..."
77 echo "but the Wollongong group seems to have hacked it in."
78                 -- Larry Wall in Configure from the perl distribution
79 %
80 echo "ICK, NOTHING WORKED!!!  You may have to diddle the includes.";;
81                 -- Larry Wall in Configure from the perl distribution
82 %
83 echo $package has manual pages available in source form.
84 echo "However, you don't have nroff, so they're probably useless to you."
85                 -- Larry Wall in Configure from the perl distribution
86 %
87 echo "Your stdio isn't very std."
88                 -- Larry Wall in Configure from the perl distribution
89 %
90 #else /* !STDSTDIO */     /* The big, slow, and stupid way */
91                 -- Larry Wall in str.c from the perl source code
92 %
93 [End of diatribe.  We now return you to your regularly scheduled
94 programming...]
95                 -- Larry Wall in Configure from the perl distribution
96 %
97 Even if you aren't in doubt, consider the mental welfare of the person who
98 has to maintain the code after you, and who will probably put parens in
99 the wrong place.  -- Larry Wall in the perl man page
100 %
101 "Help save the world!"              -- Larry Wall in README
102 %
103 Hey, I had to let awk be better at *something*...  :-)
104                 -- Larry Wall in <1991Nov7.200504.25280@netlabs.com>1
105 %
106 I already have too much problem with people thinking the efficiency of
107 a perl construct is related to its length.  On the other hand, I'm
108 perfectly capable of changing my mind next week...  :-) --lwall
109 %
110 I don't know if it's what you want, but it's what you get.  :-)
111                 -- Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>
112 %
113 I dunno, I dream in Perl sometimes...
114                 -- Larry Wall in  <8538@jpl-devvax.JPL.NASA.GOV>
115 %
116 If I allowed "next $label" then I'd also have to allow "goto $label",
117 and I don't think you really want that...  :-)
118                 -- Larry Wall in <1991Mar11.230002.27271@jpl-devvax.jpl.nasa.gov>
119 %
120 If I don't document something, it's usually either for a good reason,
121 or a bad reason.  In this case it's a good reason.  :-)
122                 -- Larry Wall in <1992Jan17.005405.16806@netlabs.com>
123 %
124 "I find this a nice feature but it is not according to the documentation.
125 Or is it a BUG?"
126 "Let's call it an accidental feature. :-)"
127                 -- Larry Wall in <6909@jpl-devvax.JPL.NASA.GOV>
128 %
129 if (instr(buf,sys_errlist[errno]))  /* you don't see this */
130                 -- Larry Wall in eval.c from the perl source code
131 %
132 if (rsfp = mypopen("/bin/mail root","w")) {     /* heh, heh */
133                 -- Larry Wall in perl.c from the perl source code
134 %
135 If you consistently take an antagonistic approach, however, people are
136 going to start thinking you're from New York.   :-)
137                 -- Larry Wall to Dan Bernstein in <10187@jpl-devvax.JPL.NASA.GOV>
138 %
139 If you want to program in C, program in C.  It's a nice language.  I
140 use it occasionally...   :-)
141                 -- Larry Wall in <7577@jpl-devvax.JPL.NASA.GOV>
142 %
143 If you want to see useful Perl examples, we can certainly arrange to have
144 comp.lang.misc flooded with them, but I don't think that would help the
145 advance of civilization.  :-)
146                 -- Larry Wall in <1992Mar5.180926.19041@netlabs.com>
147 %
148 If you want your program to be readable, consider supplying the argument.
149                 -- Larry Wall in the perl man page
150 %
151 I know it's weird, but it does make it easier to write poetry in perl.    :-)
152                 -- Larry Wall in <7865@jpl-devvax.JPL.NASA.GOV>
153 %
154 I'll say it again for the logic impaired.
155                 -- Larry Wall
156 %
157 I might be able to shoehorn a reference count in on top of the numeric
158 value by disallowing multiple references on scalars with a numeric value,
159 but it wouldn't be as clean.  I do occasionally worry about that. --lwall
160 %
161 I'm sure that that could be indented more readably, but I'm scared of
162 the awk parser.
163                 -- Larry Wall in <6849@jpl-devvax.JPL.NASA.GOV>
164 %
165 In general, if you think something isn't in Perl, try it out, because it
166 usually is.  :-)
167                 -- Larry Wall in <1991Jul31.174523.9447@netlabs.com>
168 %
169 In general, they do what you want, unless you want consistency.
170                 -- Larry Wall in the perl man page
171 %
172 Interestingly enough, since subroutine declarations can come anywhere,
173 you wouldn't have to put BEGIN {} at the beginning, nor END {} at the
174 end.  Interesting, no?  I wonder if Henry would like it. :-) --lwall
175 %
176 I think it's a new feature.  Don't tell anyone it was an accident.  :-)
177                 -- Larry Wall on s/foo/bar/eieio in <10911@jpl-devvax.JPL.NASA.GOV>
178 %
179 "It is easier to port a shell than a shell script."
180                 -- Larry Wall
181 %
182 It is, of course, written in Perl.  Translation to C is left as an
183 exercise for the reader.  :-)  -- Larry Wall in <7448@jpl-devvax.JPL.NASA.GOV>
184 %
185 It's all magic.  :-)
186                 -- Larry Wall in <7282@jpl-devvax.JPL.NASA.GOV>
187 %
188 It's documented in The Book, somewhere...
189                 -- Larry Wall in <10502@jpl-devvax.JPL.NASA.GOV>
190 %
191 > (It's sorta like sed, but not.  It's sorta like awk, but not.  etc.)
192 Guilty as charged.  Perl is happily ugly, and happily derivative.
193                 -- Larry Wall in <1992Aug26.184221.29627@netlabs.com>
194 %
195 It's there as a sop to former Ada programmers.  :-)
196                 -- Larry Wall regarding 10_000_000 in <11556@jpl-devvax.JPL.NASA.GOV>
197 %
198 It won't be covered in the book.  The source code has to be useful for
199 something, after all...  :-)
200                 -- Larry Wall in <10160@jpl-devvax.JPL.NASA.GOV>
201 %
202 :  I've heard that there is a shell (bourne or csh) to perl filter, does
203 :  anyone know of this or where I can get it?
204 Yeah, you filter it through Tom Christiansen.  :-)  -- Larry Wall
205 %
206 :       I've tried (in vi) "g/[a-z]\n[a-z]/s//_/"...but that doesn't
207 : cut it.  Any ideas?  (I take it that it may be a two-pass sort of solution).
208 In the first pass, install perl. :-)
209                 -- Larry Wall <6849@jpl-devvax.JPL.NASA.GOV>
210 %
211 I won't mention any names, because I don't want to get sun4's into
212 trouble...  :-)     -- Larry Wall in <11333@jpl-devvax.JPL.NASA.GOV>
213 %
214 Just don't compare it with a real language, or you'll be unhappy...  :-)
215                 -- Larry Wall in <1992May12.190238.5667@netlabs.com>
216 %
217 Just don't create a file called -rf.  :-)
218                 -- Larry Wall in <11393@jpl-devvax.JPL.NASA.GOV>
219 %
220 last|perl -pe '$_ x=/(..:..)...(.*)/&&"'$1'"ge$1&&"'$1'"lt$2'
221 That's gonna be tough for Randal to beat...  :-)
222                 -- Larry Wall in  <1991Apr29.072206.5621@jpl-devvax.jpl.nasa.gov>
223 %
224 Let's say the docs present a simplified view of reality...    :-)
225                 -- Larry Wall in  <6940@jpl-devvax.JPL.NASA.GOV>
226 %
227 Let us be charitable, and call it a misleading feature  :-)
228                 -- Larry Wall in <2609@jato.Jpl.Nasa.Gov>
229 %
230 Lispers are among the best grads of the Sweep-It-Under-Someone-Else's-Carpet
231 School of Simulated Simplicity.  [Was that sufficiently incendiary?  :-)]
232                 -- Larry Wall in <1992Jan10.201804.11926@netlabs.com
233 %
234 No, I'm not going to explain it.  If you can't figure it out, you didn't
235 want to know anyway...  :-)
236                 -- Larry Wall in <1991Aug7.180856.2854@netlabs.com>
237 %
238 /* now make a new head in the exact same spot */
239                 -- Larry Wall in cons.c from the perl source code
240 %
241 OK, enough hype.
242                 -- Larry Wall in the perl man page
243 %
244 OOPS!  You naughty creature!  You didn't run Configure with sh!
245 I will attempt to remedy the situation by running sh for you...
246                 -- Larry Wall in Configure from the perl distribution
247 %
248 Perl is designed to give you several ways to do anything, so
249 consider picking the most readable one.
250                 -- Larry Wall in the perl man page
251 %
252 Perl itself is usually pretty good about telling you what you shouldn't
253 do. :-)
254                 -- Larry Wall in <11091@jpl-devvax.JPL.NASA.GOV>
255 %
256 Perl programming is an *empirical* science!
257                 -- Larry Wall in <10226@jpl-devvax.JPL.NASA.GOV>
258 %
259 pos += screamnext[pos]  /* does this goof up anywhere? */
260                 -- Larry Wall in util.c from the perl source code
261 %
262 Q. Why is this so clumsy?
263 A. The trick is to use Perl's strengths rather than its weaknesses.
264                 -- Larry Wall in <8225@jpl-devvax.JPL.NASA.GOV>
265 %
266 Randal said it would be tough to do in sed.  He didn't say he didn't
267 understand sed.  Randal understands sed quite well.  Which is why he
268 uses Perl.   :-)  -- Larry Wall in <7874@jpl-devvax.JPL.NASA.GOV>
269 %
270 Real programmers can write assembly code in any language.   :-)
271                 -- Larry Wall in  <8571@jpl-devvax.JPL.NASA.GOV>
272 %
273 Remember though that
274 THERE IS NO GENERAL RULE FOR CONVERTING A LIST INTO A SCALAR.
275                 -- Larry Wall in the perl man page
276 %
277 s = (char*)(long)retval;                /* ouch */
278                 -- Larry Wall in doio.c from the perl source code
279 %
280 signal(i, SIG_DFL); /* crunch, crunch, crunch */
281                 -- Larry Wall in doarg.c from the perl source code
282 %
283 Sorry.  My testing organization is either too small, or too large, depending
284 on how you look at it.  :-)
285                 -- Larry Wall in <1991Apr22.175438.8564@jpl-devvax.jpl.nasa.gov>
286 %
287 stab_val(stab)->str_nok = 1;    /* what a wonderful hack! */
288                 -- Larry Wall in stab.c from the perl source code
289 %
290 str->str_pok |= SP_FBM;                     /* deep magic */
291 s = (unsigned char*)(str->str_ptr);         /* deeper magic */
292                 -- Larry Wall in util.c from the perl source code
293 %
294 Tactical?  TACTICAL!?!?  Hey, buddy, we went from kilotons to megatons
295 several minutes ago.  We don't need no stinkin' tactical nukes.
296 (By the way, do you have change for 10 million people?) --lwall
297 %
298 That means I'll have to use $ans to suppress newlines now.
299 Life is ridiculous.
300                 -- Larry Wall in Configure from the perl distribution
301 %
302 The autodecrement is not magical.
303                 -- Larry Wall in the perl man page
304 %
305 The only disadvantage I see is that it would force everyone to get Perl.
306 Horrors.  :-)
307                 -- Larry Wall in  <8854@jpl-devvax.JPL.NASA.GOV>
308 %
309 *** The previous line contains the naughty word "$&".\n
310 if /(ibm|apple|awk)/;      # :-)
311                 -- Larry Wall in the perl man page
312 %
313 There ain't nothin' in this world that's worth being a snot over.
314                 -- Larry Wall in <1992Aug19.041614.6963@netlabs.com>
315 %
316 There are many times when you want it to ignore the rest of the string just
317 like atof() does.  Oddly enough, Perl calls atof().  How convenient.  :-)
318                 -- Larry Wall in <1991Jun24.231628.14446@jpl-devvax.jpl.nasa.gov>
319 %
320 There are probably better ways to do that, but it would make the parser
321 more complex.  I do, occasionally, struggle feebly against complexity...  :-)
322                 -- Larry Wall in <7886@jpl-devvax.JPL.NASA.GOV>
323 %
324 There are still some other things to do, so don't think if I didn't fix
325 your favorite bug that your bug report is in the bit bucket.  (It may be,
326 but don't think it.  :-)  Larry Wall in <7238@jpl-devvax.JPL.NASA.GOV>
327 %
328 There is, however, a strange, musty smell in the air that reminds me of
329 something...hmm...yes...I've got it...there's a VMS nearby, or I'm a Blit.
330                 -- Larry Wall in Configure from the perl distribution
331 %
332 "The road to hell is paved with melting snowballs."
333                 -- Larry Wall in  <1992Jul2.222039.26476@netlabs.com>
334 %
335 /* This bit of chicanery makes a unary function followed by
336 a parenthesis into a function with one argument, highest precedence. */
337                 -- Larry Wall in toke.c from the perl source code
338 %
339 "...this does not mean that some of us should not want, in a rather
340 dispassionate sort of way, to put a bullet through csh's head."
341 Larry Wall in <1992Aug6.221512.5963@netlabs.com>
342 %
343 > This made me wonder, suddenly: can telnet be written in perl?
344 Of course it can be written in Perl.  Now if you'd said nroff,
345 that would be more challenging...   -- Larry Wall
346 %
347 Though I'll admit readability suffers slightly...
348                 -- Larry Wall in <2969@jato.Jpl.Nasa.Gov>
349 %
350 tmps_base = tmps_max;                /* protect our mortal string */
351                 -- Larry Wall in stab.c from the perl source code
352 %
353 Unix is like a toll road on which you have to stop every 50 feet to
354 pay another nickel.  But hey!  You only feel 5 cents poorer each time.
355                 -- Larry Wall in <1992Aug13.192357.15731@netlabs.com>
356 %
357 "We all agree on the necessity of compromise.  We just can't agree on
358 when it's necessary to compromise."
359                 -- Larry Wall in  <1991Nov13.194420.28091@netlabs.com>
360 %
361 /* we have tried to make this normal case as abnormal as possible */
362                 -- Larry Wall in cmd.c from the perl source code
363 %
364 What about WRITING it first and rationalizing it afterwords?  :-)
365                 -- Larry Wall in <8162@jpl-devvax.JPL.NASA.GOV>
366 %
367 : 1.  What is the possibility of this being added in the future?
368 In the near future, the probability is close to zero.  In the distant
369 future, I'll be dead, and posterity can do whatever they like...  :-) --lwall
370 %
371 "What is the sound of Perl?  Is it not the sound of a wall that
372 people have stopped banging their heads against?"
373                 -- Larry Wall in <1992Aug26.184221.29627@netlabs.com>
374 %
375 When in doubt, parenthesize.  At the very least it will let some
376 poor schmuck bounce on the % key in vi.
377                 -- Larry Wall in the perl man page
378 %
379 "You can't have filenames longer than 14 chars.
380 You can't even think about them!"
381                 -- Larry Wall in Configure from the perl distribution
382 %
383 You have to admit that it's difficult to misplace the Perl sources.  :-)
384                 -- Larry Wall in <1992Aug26.184221.29627@netlabs.com>
385 %
386 Your csh still thinks true is false.  Write to your vendor today and tell
387 them that next year Configure ought to "rm /bin/csh" unless they fix their
388 blasted shell. :-)   -- Larry Wall in Configure from the perl distribution
389 %
390 You want it in one line?  Does it have to fit in 80 columns?   :-)
391                 -- Larry Wall in <7349@jpl-devvax.JPL.NASA.GOV>
392 %
393 Well, enough clowning around.  Perl is, in intent, a cleaned up and
394 summarized version of that wonderful semi-natural language known as
395 "Unix".
396                 -- Larry Wall in <1994Apr6.184419.3687@netlabs.com>
397 %
398 Anyway, there's plenty of room for doubt.  It might seem easy enough,
399 but computer language design is just like a stroll in the park.
400
401 Jurassic Park, that is.
402                 -- Larry Wall in <1994Jun15.074039.2654@netlabs.com>
403 %
404 I want to see people using Perl to glue things together creatively, not
405 just technically but also socially.
406                 -- Larry Wall in <199702111730.JAA28598@wall.org>
407 %
408 The whole history of computers is rampant with cheerleading at best and
409 bigotry at worst.
410                 -- Larry Wall in <199702111730.JAA28598@wall.org>
411 %
412 Unix weanies are as bad at this as anyone.
413                 -- Larry Wall in <199702111730.JAA28598@wall.org>
414 %
415 If someone stinks, view it as a reason to help them, not a reason to
416 avoid them.
417                 -- Larry Wall in <199702111730.JAA28598@wall.org>
418 %
419 As usual, I'm overstating the case to knock a few neurons loose, but the
420 truth is usually somewhere in the muddle, uh, middle.
421                 -- Larry Wall in <199702111639.IAA28425@wall.org>
422 %
423 Odd that we think definitions are definitive.   :-)
424                 -- Larry Wall in <199702221943.LAA20388@wall.org>
425 %
426 : But for some things, Perl just isn't the optimal choice.
427
428 (yet)   :-)
429                 -- Larry Wall in <199702221943.LAA20388@wall.org>
430 %
431 I don't like this official/unofficial distinction.  It sound, er, officious.
432                 -- Larry Wall in <199702221943.LAA20388@wall.org>
433 %
434 If you write something wrong enough, I'll be glad to make up a new
435 witticism just for you.
436                 -- Larry Wall in <199702221943.LAA20388@wall.org>
437 %
438 Perl 5 introduced everything else, including the ability to introduce
439 everything else.
440                 -- Larry Wall in <199702252152.NAA28845@wall.org>
441 %
442 So far we've managed to avoid turning Perl into APL.  :-)
443                 -- Larry Wall in <199702251904.LAA28261@wall.org>
444 %
445 Not that I have anything much against redundancy.  But I said that already.
446                 -- Larry Wall in <199702271735.JAA04048@wall.org>
447 %
448 They can always run stderr through uniq.  :-)
449                 -- Larry Wall in <199704012331.PAA16535@wall.org>
450 %
451 I'd put my money where my mouth is, but my mouth keeps moving.
452                 -- Larry Wall in <199704051723.JAA28035@wall.org>
453 %
454 Of course, I reserve the right to make wholly stupid changes to Perl
455 if I think they improve the language.  :-)
456                 -- Larry Wall in <199704251604.JAA27300@wall.org>
457 %
458 Call me bored, but don't call me boring.
459                 -- Larry Wall in <199705101952.MAA00756@wall.org>
460 %
461 I think $[ is more like a coelacanth than a mastadon.
462                 -- Larry Wall in <199705101952.MAA00756@wall.org>
463 %
464 : I used to think that this was just another demonstration of Larry's
465 : enormous skill at pulling off what other people would fail or balk at.
466
467 Well, everyone else knew it was impossible, so they didn't try.  :-)
468                 -- Larry Wall in <199705101952.MAA00756@wall.org>
469 %
470 We question most of the mantras around here periodically, in case
471 you hadn't noticed.  :-)
472                 -- Larry Wall in <199705101952.MAA00756@wall.org>
473 %
474 (Presuming for the sake of argument that it's even *possible* to design
475 better code in Perl than in C.  :-)
476                 -- Larry Wall on core code vs. module code design
477 %
478 : The hierarchy is excessive.
479
480 So is the anarchy.  :-)
481                 -- Larry Wall in <199705101952.MAA00756@wall.org>
482 %
483 That could certainly be done, but I don't want to fall into the Forth
484 trap, where every running Forth implementation is really a different
485 language.
486                 -- Larry Wall in <199705101952.MAA00756@wall.org>
487 %
488 Tcl long ago fell into the Forth trap, and is now trying desperately to
489 extricate itself (with some help from Sun's marketing department).
490                 -- Larry Wall in <199705101952.MAA00756@wall.org>
491 %
492 The core is not frozen, but slushy.
493                 -- Larry Wall in <199705101952.MAA00756@wall.org>
494 %
495 The whole intent of Perl 5's module system was to encourage the growth
496 of Perl culture rather than the Perl core.
497                 -- Larry Wall in <199705101952.MAA00756@wall.org>
498 %
499 Randal can write one-liners again.  Everyone is happy, and peace spreads
500 over the whole Earth.
501                 -- Larry Wall in <199705101952.MAA00756@wall.org>
502 %
503 Life gets boring, someone invents another necessity, and once again we
504 turn the crank on the screwjack of progress hoping that nobody gets
505 screwed.
506                 -- Larry Wall in <199705101952.MAA00756@wall.org>
507 %
508 No prisoner's dilemma here.  Over the long term, symbiosis is more
509 useful than parasitism.  More fun, too.  Ask any mitochondria.
510                 -- Larry Wall in <199705102042.NAA00851@wall.org>
511 %
512 Obviously I was either onto something, or on something.
513                 -- Larry Wall on the creation of Perl
514 %
515 It's the Magic that counts.
516                 -- Larry Wall on Perl's apparent ugliness
517 %
518 May you do Good Magic with Perl.
519                 -- Larry Wall's blessing
520 %
521 P.S. Perl's master plan (or what passes for one) is to take over the
522 world like English did.  Er, *as* English did...
523                 -- Larry Wall in <199705201832.LAA28393@wall.org>
524 %
525 You can prove anything by mentioning another computer language.  :-)
526
527                 -- Larry Wall in <199706242038.NAA29853@wall.org>
528 %
529 I think you didn't get a reply because you used the terms "correct" and
530 "proper", neither of which has much meaning in Perl culture.  :-)
531                 -- Larry Wall in <199706251602.JAA01786@wall.org>
532 %
533 I'm sure a mathematician would claim that 0 and 1 are both very
534 interesting numbers.  :-)
535                 -- Larry Wall in <199707300650.XAA05515@wall.org>
536 %
537 True, it returns "" for false, but "" is an even more interesting
538 number than 0.
539                 -- Larry Wall in <199707300650.XAA05515@wall.org>
540 %
541 Any false value is gonna be fairly boring in Perl, mathematicians
542 notwithstanding.
543                 -- Larry Wall in <199707300650.XAA05515@wall.org>
544 %
545 We didn't put in ^^ because then we'd have to keep telling people what
546 it means, and then we'd have to keep telling them why it doesn't short
547 circuit.  :-/
548                 -- Larry Wall in <199707300650.XAA05515@wall.org>
549 %
550 Anybody want a binary telemetry frame editor written in Perl?
551                 -- Larry Wall in <199708012226.PAA22015@wall.org>
552 %
553 Most places distinguish them merely by using the appropriate value.
554 Hooray for context...
555                 -- Larry Wall in <199708040319.UAA16213@wall.org>
556 %
557 But then it's a bit odd to think that declaring something int could
558 actually slow down the program, if it ended up forcing more conversions
559 back to string.
560                 -- Larry Wall in <199708040319.UAA16213@wall.org>
561 %
562 It's possible that I'm just an idiot, and don't recognize a sleepy
563 slavemaster when I see one.
564                 -- Larry Wall in <199708040319.UAA16213@wall.org>
565 %
566 Perhaps I'm missing the gene for making enemies.  :-)
567                 -- Larry Wall in <199708040319.UAA16213@wall.org>
568 %
569 Perl has a long tradition of working around compilers.
570                 -- Larry Wall in <199708252256.PAA00105@wall.org>
571 %
572 Personally, I like to defiantly split my infinitives.  :-)
573                 -- Larry Wall in <199708271551.IAA10211@wall.org>
574 %
575 Real theology is always rather shocking to people who already
576 think they know what they think.  I'm still shocked myself.  :-)
577                 -- Larry Wall in <199708261932.MAA05218@wall.org>
578 %
579 But maybe we don't really need that...
580                 -- Larry Wall in <199709011851.LAA07101@wall.org>
581 %
582 The computer should be doing the hard work.  That's what it's paid to do,
583 after all.
584                 -- Larry Wall in <199709012312.QAA08121@wall.org>
585 %
586 The following two statements are usually both true:
587
588 There's not enough documentation.
589
590 There's too much documentation.
591                 -- Larry Wall in <199709020026.RAA08431@wall.org>
592 %
593 I don't think I'm gonna agree with that.  Way too much visual confusion...
594                 -- Larry Wall in <199709021627.JAA11966@wall.org>
595 %
596 There's certainly precedent for that already too.  (Not claiming it's
597 *good* precedent, mind you. :-)
598                 -- Larry Wall in <199709021744.KAA12428@wall.org>
599 %
600 Of course, this being Perl, we could always take both approaches.  :-)
601                 -- Larry Wall in <199709021744.KAA12428@wall.org>
602 %
603 For the run-time caching, I was going to suggest "cached" (doh!), but
604 perhaps "once" is more meaningful to ordinary people.
605                 -- Larry Wall in <199709021812.LAA12571@wall.org>
606 %
607 The random quantum fluctuations of my brain are historical accidents that
608 happen to have decided that the concepts of dynamic scoping and lexical
609 scoping are orthogonal and should remain that way.
610                 -- Larry Wall in <199709021854.LAA12794@wall.org>
611 %
612 At many levels, Perl is a "diagonal" language.
613                 -- Larry Wall in <199709021854.LAA12794@wall.org>
614 %
615 I'm serious about thinking through all the possibilities before we
616 settle on anything.  All things have the advantages of their
617 disadvantages, and vice versa.
618                 -- Larry Wall in <199709032332.QAA21669@wall.org>
619 %
620 Part of language design is purturbing the proposed feature in various
621 directions to see how it might generalize in the future.
622                 -- Larry Wall in <199709032332.QAA21669@wall.org>
623 %
624 Sometimes we choose the generalization.  Sometimes we don't.
625                 -- Larry Wall in <199709032332.QAA21669@wall.org>
626 %
627 I wouldn't ever write the full sentence myself, but then, I never use
628 goto either.
629                 -- Larry Wall in <199709032332.QAA21669@wall.org>
630 %
631 It's appositival, if it's there.  And it doesn't have to be there.
632 And it's really obvious that it's there when it's there.
633                 -- Larry Wall in <199709032332.QAA21669@wall.org>
634 %
635 Oh, get ahold of yourself.  Nobody's proposing that we parse English.
636                 -- Larry Wall in <199709032332.QAA21669@wall.org>
637 %
638 As with all the other proposals, it's basically just a list of words.
639 You can deal with that... :-)
640                 -- Larry Wall in <199709032332.QAA21669@wall.org>
641 %
642 I hope I'm not getting so famous that I can't think out load [sic] anymore.
643                 -- Larry Wall in <199709032332.QAA21669@wall.org>
644 %
645 It would be possible to optimize some forms of goto, but I haven't
646 bothered.
647                 -- Larry Wall in <199709041935.MAA27136@wall.org>
648 %
649 A "goto" in Perl falls into the category of hard things that should be
650 possible, not easy things that should be easy.
651                 -- Larry Wall in <199709041935.MAA27136@wall.org>
652 %
653 How do Crays and Alphas handle the POSIX problem?
654                 -- Larry Wall in <199709050042.RAA29379@wall.org>
655 %
656 One of the reasons Perl is faster than certain other unnamed interpreted
657 languages is that it binds variable names to a particular package (or
658 scope) at compile time rather than at run time.
659                 -- Larry Wall in <199709050035.RAA29328@wall.org>
660 %
661 Well, that's more-or-less what I was saying, though obviously addition
662 is a little more cosmic than the bitwise operators.
663                 -- Larry Wall in <199709051808.LAA01780@wall.org>
664 %
665 You tell it that it's indicative by appending $!.  That's why we made $!
666 such a short variable name, after all.  :-)
667                 -- Larry Wall in <199709081801.LAA20629@wall.org>
668 %
669 The choice of approaches could be made the responsibility of the
670 programmer.
671                 -- Larry Wall in <199709081901.MAA20863@wall.org>
672 %
673 As someone pointed out, you could have an attribute that says "optimize
674 the heck out of this routine", and your definition of heck would be a
675 parameter to the optimizer.
676                 -- Larry Wall in <199709081854.LAA20830@wall.org>
677 %
678 I guess what I'm saying is that the croak in question is requiring
679 agreement (in the linguistic sense) that isn't buying us anything.
680                 -- Larry Wall in <199709241628.JAA08908@wall.org>
681 %
682 If you're going to define a shortcut, then make it the base [sic] darn
683 shortcut you can.
684                 -- Larry Wall in <199709241628.JAA08908@wall.org>
685 %
686 It is my job in life to travel all roads, so that some may take the road
687 less travelled, and others the road more travelled, and all have a
688 pleasant day.
689                 -- Larry Wall in <199709241628.JAA08908@wall.org>
690 %
691 It's getting harder and harder to think out loud.  One of these days
692 someone's gonna go off and kill Thomas a'Becket for me...
693                 -- Larry Wall in <199709242015.NAA10312@wall.org>
694 %
695 I was about to say, "Avoid fame like the plague," but you know, they can
696 cure the plague with penicillin these days.
697                 -- Larry Wall in <199709242015.NAA10312@wall.org>
698 %
699 But the possibility of abuse may be a good reason for leaving
700 capabilities out of other computer languages, it's not a good reason for
701 leaving capabilities out of Perl.
702                 -- Larry Wall in <199709251614.JAA15718@wall.org>
703 %
704 Oh, wait, that was Randal...nevermind...
705                 -- Larry Wall in <199709261754.KAA23761@wall.org>
706 %
707 :-) your own self.
708                 -- Larry Wall in <199709261754.KAA23761@wall.org>
709 %
710 P.S.  I suppose I really should be nicer to people today, considering
711 I'll be singing in Billy Graham's choir tonight...   :-)
712                 -- Larry Wall in <199709261754.KAA23761@wall.org>
713 %
714 Magically turning people's old scalar contexts into list contexts is a
715 recipe for several kinds of disaster.
716                 -- Larry Wall in <199709291631.JAA08648@wall.org>
717 %
718 : The following (relative to AutoSplit 1.03) attempts to please everyone
719 : and perhaps pleases no one:
720
721 I think that's way cool.
722                 -- Larry Wall in <199709292015.NAA09627@wall.org>
723 %
724 And we can always supply them with a program that makes identical files
725 into links to a single file.
726                 -- Larry Wall in <199709292012.NAA09616@wall.org>
727 %
728 I wasn't recommending that we make the links for them, only provide them
729 with the tools to do so if they want to take the gamble (or the gambol).
730                 -- Larry Wall in <199709292259.PAA10407@wall.org>
731 %
732 This has been planned for some time.  I guess we'll just have to find
733 someone with an exceptionally round tuit.
734                 -- Larry Wall in <199709302338.QAA17037@wall.org>
735 %
736     switch (ref $@) {
737     OverflowError =>
738
739 warn "Dam needs to be drained";
740     DomainError =>
741
742 warn "King needs to be trained";
743     NuclearWarError =>
744
745 die;
746     }
747                 -- Larry Wall in <199709302338.QAA17037@wall.org>
748 %
749 I surely do hope that's a syntax error.
750                 -- Larry Wall in <199710011752.KAA21624@wall.org>
751 %
752 Soitainly.  I was assuming that came with the OO-ness of it.
753                 -- Larry Wall in <199710011802.LAA21692@wall.org>
754 %
755 Because the demand for it is low enough that it would be best handled
756 as an XSUB, and the demand for it is low enough that nobody has
757 bothered to write it as an XSUB.
758                 -- Larry Wall on in-place Perl sorting
759 %
760 But that looks a little too much like a declaration for my tastes, when
761 in fact it isn't one.  So forget I mentioned it.
762                 -- Larry Wall in <199710011704.KAA21395@wall.org>
763 %
764 I'm not sure whether that's actually useful...
765                 -- Larry Wall in <199710011704.KAA21395@wall.org>
766 %
767 Anyway, my money is still on use strict vars . . .
768                 -- Larry Wall in <199710011704.KAA21395@wall.org>
769 %
770 By rule #1, 5.005 should always allow localization of lexical @_ . . .
771                 -- Larry Wall in <199710011704.KAA21395@wall.org>
772 %
773 I *know* it's weird, but strict vars already comes very, very close to
774 partitioning the crowd into those who can deal with local lexicals and
775 those who can't.
776                 -- Larry Wall in <199710050130.SAA04762@wall.org>
777 %
778 If you remove stricture from a large Perl program currently, you're just
779 installing delayed bugs, whereas with this feature, you're installing an
780 instant bug that's easily fixed.  Whoopee.
781                 -- Larry Wall in <199710050130.SAA04762@wall.org>
782 %
783 The reason I like hitching a ride on strict vars is that it cuts down
784 the number of rarely used pragmas people have to remember, yet provides
785 a way to get to the point where we might, just maybe, someday, make
786 local lexicals the default for everyone, without having useless pragmas
787 wandering around various programs, or using up another bit in $^H.
788                 -- Larry Wall in <199710050130.SAA04762@wall.org>
789 %
790 I don't think it's worth washing hogs over.
791                 -- Larry Wall in <199710060253.TAA09723@wall.org>
792 %
793 It's certainly easy to calculate the average attendance for Perl
794 conferences.
795                 -- Larry Wall in <199710071721.KAA19014@wall.org>
796 %
797 Tcl tends to get ported to weird places like routers.
798                 -- Larry Wall in <199710071721.KAA19014@wall.org>
799 %
800 Historically Tcl has always stored all intermediate results as strings.
801 (With 8.0 they're rethinking that.  Of course, Perl rethought that from
802 the start.)
803                 -- Larry Wall in <199710071721.KAA19014@wall.org>
804 %
805 I knew I'd hate COBOL the moment I saw they'd used "perform" instead of
806 "do".
807                 -- Larry Wall on a not-so-popular programming language
808 %
809 Just don't make the '9' format pack/unpack numbers...  :-)
810                 -- Larry Wall in <199710091434.HAA00838@wall.org>
811 %
812 I think that's easier to read.  Pardon me.  Less difficult to read.
813                 -- Larry Wall in <199710120226.TAA06867@wall.org>
814 %
815 That wouldn't be good enough.
816                 -- Larry Wall in <199710131621.JAA14907@wall.org>
817 %
818 To ordinary folks, conversion is not always automatic.  It's something
819 that may or may not require explicit assistance.  See Billy Graham.  :-)
820                 -- Larry Wall in <199710141738.KAA22289@wall.org>
821 %
822 The prayer of serenity applies here.  To both of us.  :-)
823                 -- Larry Wall in <199710141802.LAA22443@wall.org>
824 %
825 Well, you can implement a Perl peek() with unpack('P',...).  Once you
826 have that, there's only security through obscurity.  :-)
827                 -- Larry Wall in <199710161537.IAA07828@wall.org>
828 %
829 It may be possible to get this condition from within Perl if a signal
830 handler runs at just the wrong moment.  Another point for Chip...  :-)
831                 -- Larry Wall in <199710161546.IAA07885@wall.org>
832 %
833 As pointed out in a followup, Real Perl Programmers prefer things to be
834 visually distinct.
835                 -- Larry Wall in <199710161841.LAA13208@wall.org>
836 %
837 The Harvard Law states:  Under controlled conditions of light, temperature,
838 humidity, and nutrition, the organism will do as it damn well pleases.
839                 -- Larry Wall in <199710161841.LAA13208@wall.org>
840 %
841 That should probably be written:
842     no !@#$%^&*:@!semicolon
843                 -- Larry Wall in <199710161841.LAA13208@wall.org>
844 %
845 That gets us out of deciding how to spell Reg[eE]xp?|RE . . .
846 Of course, then we have to decide what ref $re returns...  :-)
847                 -- Larry Wall in <199710171838.LAA24968@wall.org>
848 %
849 Depends on how you define "always".  :-)
850                 -- Larry Wall in <199710211647.JAA17957@wall.org>
851 %
852 'Course, that doesn't work when 'a' contains parentheses.
853                 -- Larry Wall in <199710211647.JAA17957@wall.org>
854 %
855 I was trying not to mention backtracking.  Which, of course, means that
856 yours is "righter" than mine, in a theoretical sense.
857                 -- Larry Wall in <199710211624.JAA17833@wall.org>
858 %
859 Not that I'm against sneaking some notions into people's heads upon
860 occasion.  (Or blasting them in outright.)
861                 -- Larry Wall in <199710211624.JAA17833@wall.org>
862 %
863 (To the extent that anyone but a Prolog programmer can understand \X totally.
864 (And to the extent that a Prolog programmer can understand "cut". :-))
865                 -- Larry Wall in <199710211624.JAA17833@wall.org>
866 %
867 But you'll notice Perl has a goto.
868                 -- Larry Wall in <199710211624.JAA17833@wall.org>
869 %
870 Suppose you're working on an optimizer to render \X unnecessary (or
871 rather, redundant, which isn't the same thing in my book).
872                 -- Larry Wall in <199710211624.JAA17833@wall.org>
873 %
874 Wow, I'm being shot at from both sides.  That means I *must* be right.  :-)
875                 -- Larry Wall in <199710211959.MAA18990@wall.org>
876 %
877 You don't have to wait--you can have it in 5.004_54 or so.  :-)
878                 -- Larry Wall in <199710221740.KAA24455@wall.org>
879 %
880 There's something to be said for returning the whole syntax tree.
881                 -- Larry Wall in <199710221833.LAA24741@wall.org>
882 %
883 It's not really a rule--it's more like a trend.
884                 -- Larry Wall in <199710221721.KAA24321@wall.org>
885 %
886 Double *sigh*.  _04 is going onto thousands of CDs even as we speak,
887 so to speak.
888                 -- Larry Wall in <199710221718.KAA24299@wall.org>
889 %
890 The code also assumes that it's difficult to misspell "a" or "b".  :-)
891                 -- Larry Wall in <199710221731.KAA24396@wall.org>
892 %
893 Well, hey, let's just make everything into a closure, and then we'll
894 have our general garbage collector, installed by "use less memory".
895                 -- Larry Wall in <199710221744.KAA24484@wall.org>
896 %
897 No, that'd be silly.
898                 -- Larry Wall in <199710221710.KAA24242@wall.org>
899 %
900 People who understand context would be steamed to have someone else
901 dictating how they can call it.
902                 -- Larry Wall in <199710221710.KAA24242@wall.org>
903 %
904 For the sake of argument I'll ignore all your fighting words.
905                 -- Larry Wall in <199710221710.KAA24242@wall.org>
906 %
907 Think of prototypes as a funny markup language--the interpretation is
908 left up to the rendering engine.
909                 -- Larry Wall in <199710221710.KAA24242@wall.org>
910 %
911 Either approach may give birth to various sorts of monstrosities.
912                 -- Larry Wall in <199710221950.MAA25210@wall.org>
913 %
914 The way these things go, there are probably 6 or 8 kludgey ways to do
915 it, and a better way that involves rethinking something that hasn't
916 been rethunk yet.
917                 -- Larry Wall in <199710221859.LAA24889@wall.org>
918 %
919 Obviously your filters are throwing away mail from Randal.  :-)
920                 -- Larry Wall in <199710221937.MAA25131@wall.org>
921 %
922 Beauty?  What's that?
923                 -- Larry Wall in <199710221937.MAA25131@wall.org>
924 %
925 Oh yeah.  Forgot about those.  Getting senile, I guess...
926                 -- Larry Wall in <199710261551.HAA17791@wall.org>
927 %
928 'Course, I haven't weighed in yet.  :-)
929                 -- Larry Wall in <199710281816.KAA29614@wall.org>
930 %
931 I'm afraid my gut level reaction is basically, "'proceed' is cute, but
932 cute doesn't cut it in the emergency room."
933                 -- Larry Wall in <199710281816.KAA29614@wall.org>
934 %
935 I suppose one could claim that an undocumented feature has no
936 semantics.  :-(
937                 -- Larry Wall in <199710290036.QAA01818@wall.org>
938 %
939 : How would you disambiguate these situations?
940
941 By shooting the person who did the latter.
942                 -- Larry Wall in <199710290235.SAA02444@wall.org>
943 %
944 Yes, we have consensus that we need 64 bit support.  :-)
945                 -- Larry Wall in <199710291922.LAA07101@wall.org>
946 %
947 :  - cut in regexps
948
949 I don't think we reached consensus on that.  We're still backtracking...
950                 -- Larry Wall in <199710291922.LAA07101@wall.org>
951 %
952 Maybe it's time to break that.
953                 -- Larry Wall in <199710311718.JAA19082@wall.org>
954 %
955 Boss: You forgot to assign the result of your map!
956
957 Hacker: Dang, I'm always forgetting my assignations...
958
959 Boss: And what's that "goto" doing there?!?
960
961 Hacker: Er, I guess my finger slipped when I was typing "getservbyport"...
962
963 Boss: Ah well, accidents will happen.  Maybe we should have picked APL.
964                 -- Larry Wall in <199710311732.JAA19169@wall.org>
965 %
966 Perhaps they will have to outlaw sending random lists of words.  fee fie
967 foe foo [sic]
968                 -- Larry Wall in <199710311916.LAA19760@wall.org>
969 %
970 Hey, if pi == 3, and three == 0, does that make pi == 0?  :-)
971                 -- Larry Wall in <199711011926.LAA25557@wall.org>
972 %
973 I think you're letting your knowledge of internals interfere with your
974 linguistic judgement here.
975                 -- Larry Wall in <199711011949.LAA25651@wall.org>
976 %
977 (Never thought I'd be telling Malcolm and Ilya the same thing... :-)
978                 -- Larry Wall in <199711071819.KAA29909@wall.org>
979 %
980 And other operators aren't so special syntactically, but weird
981 in other ways, like "scalar", and "goto".
982                 -- Larry Wall in <199711071749.JAA29751@wall.org>
983 %
984 Portability should be the default.
985                 -- Larry Wall in <199711072201.OAA01123@wall.org>
986 %
987 Actually, it also looks like we should optimize (13,2,42,8,'hike') into
988 a pp_padav copy as well.
989                 -- Larry Wall in <199711081945.LAA06315@wall.org>
990 %
991 If this were Ada, I suppose we'd just constant fold 1/0 into
992
993     die "Illegal division by zero"
994                 -- Larry Wall in <199711100226.SAA12549@wall.org>
995 %
996 Are you perchance running on a 64-bit machine?
997                 -- Larry Wall in <199711102149.NAA16878@wall.org>
998 %
999 Almost nothing in Perl serves a single purpose.
1000                 -- Larry Wall in <199712040054.QAA13811@wall.org>
1001 %
1002 There's some entertainment value in watching people juggle nitroglycerin.
1003                 -- Larry Wall in <199712041747.JAA18908@wall.org>
1004 %
1005 Reserve your abuse for your true friends.
1006                 -- Larry Wall in <199712041852.KAA19364@wall.org>
1007 %
1008 Er, Tom, I hate to be the one to point this out, but your fix list
1009 is starting to resemble a feature list.  You must be human or something.
1010                 -- Larry Wall in <199801081824.KAA29602@wall.org>
1011 %
1012 It's hard to tune heavily tuned code.  :-)
1013                 -- Larry Wall in <199801141725.JAA07555@wall.org>
1014 %
1015 Perl will always provide the null.
1016                 -- Larry Wall in <199801151818.KAA14538@wall.org>
1017 %
1018 It's easy to solve the halting problem with a shotgun.   :-)
1019                 -- Larry Wall in <199801151836.KAA14656@wall.org>
1020 %
1021 Well, I think Perl should run faster than C.  :-)
1022                 -- Larry Wall in <199801200306.TAA11638@wall.org>
1023 %
1024 To Perl, or not to Perl, that is the kvetching.
1025                 -- Larry Wall in <199801200310.TAA11670@wall.org>
1026 %