| 1 |
All language designers are arrogant. Goes with the territory... :-) |
| •2 |
-- Larry Wall in <[email protected] |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 11 |
% |
| 12 |
"And I don't like doing silly things (except on purpose)." |
| •13 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 34 |
% |
| 35 |
Besides, it's good to force C programmers to use the toolbox occasionally. :-) |
| •36 |
-- Larry Wall in <[email protected]> |
| 37 |
% |
| 38 |
Besides, REAL computers have a rename() system call. :-) |
| •39 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]>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 <[email protected]> |
| 112 |
% |
| 113 |
I dunno, I dream in Perl sometimes... |
| •114 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 164 |
% |
| 165 |
In general, if you think something isn't in Perl, try it out, because it |
| 166 |
usually is. :-) |
| •167 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 184 |
% |
| 185 |
It's all magic. :-) |
| •186 |
-- Larry Wall in <[email protected]> |
| 187 |
% |
| 188 |
It's documented in The Book, somewhere... |
| •189 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 194 |
% |
| 195 |
It's there as a sop to former Ada programmers. :-) |
| •196 |
-- Larry Wall regarding 10_000_000 in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 210 |
% |
| 211 |
I won't mention any names, because I don't want to get sun4's into |
| 212 |
trouble... :-) -- Larry Wall in <[email protected]> |
| 213 |
% |
| 214 |
Just don't compare it with a real language, or you'll be unhappy... :-) |
| •215 |
-- Larry Wall in <[email protected]> |
| 216 |
% |
| 217 |
Just don't create a file called -rf. :-) |
| •218 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 223 |
% |
| 224 |
Let's say the docs present a simplified view of reality... :-) |
| •225 |
-- Larry Wall in <[email protected]> |
| 226 |
% |
| 227 |
Let us be charitable, and call it a misleading feature :-) |
| •228 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected] |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 255 |
% |
| 256 |
Perl programming is an *empirical* science! |
| •257 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 269 |
% |
| 270 |
Real programmers can write assembly code in any language. :-) |
| •271 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 407 |
% |
| 408 |
The whole history of computers is rampant with cheerleading at best and |
| 409 |
bigotry at worst. |
| •410 |
-- Larry Wall in <[email protected]> |
| 411 |
% |
| 412 |
Unix weanies are as bad at this as anyone. |
| •413 |
-- Larry Wall in <[email protected]> |
| 414 |
% |
| 415 |
If someone stinks, view it as a reason to help them, not a reason to |
| 416 |
avoid them. |
| •417 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 422 |
% |
| 423 |
Odd that we think definitions are definitive. :-) |
| •424 |
-- Larry Wall in <[email protected]> |
| 425 |
% |
| 426 |
: But for some things, Perl just isn't the optimal choice. |
| 427 |
|
| 428 |
(yet) :-) |
| •429 |
-- Larry Wall in <[email protected]> |
| 430 |
% |
| 431 |
I don't like this official/unofficial distinction. It sound, er, officious. |
| •432 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 437 |
% |
| 438 |
Perl 5 introduced everything else, including the ability to introduce |
| 439 |
everything else. |
| •440 |
-- Larry Wall in <[email protected]> |
| 441 |
% |
| 442 |
So far we've managed to avoid turning Perl into APL. :-) |
| •443 |
-- Larry Wall in <[email protected]> |
| 444 |
% |
| 445 |
Not that I have anything much against redundancy. But I said that already. |
| •446 |
-- Larry Wall in <[email protected]> |
| 447 |
% |
| 448 |
They can always run stderr through uniq. :-) |
| •449 |
-- Larry Wall in <[email protected]> |
| 450 |
% |
| 451 |
I'd put my money where my mouth is, but my mouth keeps moving. |
| •452 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 457 |
% |
| 458 |
Call me bored, but don't call me boring. |
| •459 |
-- Larry Wall in <[email protected]> |
| 460 |
% |
| 461 |
I think $[ is more like a coelacanth than a mastadon. |
| •462 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 469 |
% |
| 470 |
We question most of the mantras around here periodically, in case |
| 471 |
you hadn't noticed. :-) |
| •472 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 491 |
% |
| 492 |
The core is not frozen, but slushy. |
| •493 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 498 |
% |
| 499 |
Randal can write one-liners again. Everyone is happy, and peace spreads |
| 500 |
over the whole Earth. |
| •501 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 524 |
% |
| 525 |
You can prove anything by mentioning another computer language. :-) |
| 526 |
|
| •527 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 532 |
% |
| 533 |
I'm sure a mathematician would claim that 0 and 1 are both very |
| 534 |
interesting numbers. :-) |
| •535 |
-- Larry Wall in <[email protected]> |
| 536 |
% |
| 537 |
True, it returns "" for false, but "" is an even more interesting |
| 538 |
number than 0. |
| •539 |
-- Larry Wall in <[email protected]> |
| 540 |
% |
| 541 |
Any false value is gonna be fairly boring in Perl, mathematicians |
| 542 |
notwithstanding. |
| •543 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 549 |
% |
| 550 |
Anybody want a binary telemetry frame editor written in Perl? |
| •551 |
-- Larry Wall in <[email protected]> |
| 552 |
% |
| 553 |
Most places distinguish them merely by using the appropriate value. |
| 554 |
Hooray for context... |
| •555 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 565 |
% |
| 566 |
Perhaps I'm missing the gene for making enemies. :-) |
| •567 |
-- Larry Wall in <[email protected]> |
| 568 |
% |
| 569 |
Perl has a long tradition of working around compilers. |
| •570 |
-- Larry Wall in <[email protected]> |
| 571 |
% |
| 572 |
Personally, I like to defiantly split my infinitives. :-) |
| •573 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 578 |
% |
| 579 |
But maybe we don't really need that... |
| •580 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 592 |
% |
| 593 |
I don't think I'm gonna agree with that. Way too much visual confusion... |
| •594 |
-- Larry Wall in <[email protected]> |
| 595 |
% |
| 596 |
There's certainly precedent for that already too. (Not claiming it's |
| 597 |
*good* precedent, mind you. :-) |
| •598 |
-- Larry Wall in <[email protected]> |
| 599 |
% |
| 600 |
Of course, this being Perl, we could always take both approaches. :-) |
| •601 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 611 |
% |
| 612 |
At many levels, Perl is a "diagonal" language. |
| •613 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 623 |
% |
| 624 |
Sometimes we choose the generalization. Sometimes we don't. |
| •625 |
-- Larry Wall in <[email protected]> |
| 626 |
% |
| 627 |
I wouldn't ever write the full sentence myself, but then, I never use |
| 628 |
goto either. |
| •629 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 634 |
% |
| 635 |
Oh, get ahold of yourself. Nobody's proposing that we parse English. |
| •636 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 641 |
% |
| 642 |
I hope I'm not getting so famous that I can't think out load [sic] anymore. |
| •643 |
-- Larry Wall in <[email protected]> |
| 644 |
% |
| 645 |
It would be possible to optimize some forms of goto, but I haven't |
| 646 |
bothered. |
| •647 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 652 |
% |
| 653 |
How do Crays and Alphas handle the POSIX problem? |
| •654 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 668 |
% |
| 669 |
The choice of approaches could be made the responsibility of the |
| 670 |
programmer. |
| •671 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 703 |
% |
| 704 |
Oh, wait, that was Randal...nevermind... |
| •705 |
-- Larry Wall in <[email protected]> |
| 706 |
% |
| 707 |
:-) your own self. |
| •708 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 748 |
% |
| 749 |
I surely do hope that's a syntax error. |
| •750 |
-- Larry Wall in <[email protected]> |
| 751 |
% |
| 752 |
Soitainly. I was assuming that came with the OO-ness of it. |
| •753 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 763 |
% |
| 764 |
I'm not sure whether that's actually useful... |
| •765 |
-- Larry Wall in <[email protected]> |
| 766 |
% |
| 767 |
Anyway, my money is still on use strict vars . . . |
| •768 |
-- Larry Wall in <[email protected]> |
| 769 |
% |
| 770 |
By rule #1, 5.005 should always allow localization of lexical @_ . . . |
| •771 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 789 |
% |
| 790 |
I don't think it's worth washing hogs over. |
| •791 |
-- Larry Wall in <[email protected]> |
| 792 |
% |
| 793 |
It's certainly easy to calculate the average attendance for Perl |
| 794 |
conferences. |
| •795 |
-- Larry Wall in <[email protected]> |
| 796 |
% |
| 797 |
Tcl tends to get ported to weird places like routers. |
| •798 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 811 |
% |
| 812 |
I think that's easier to read. Pardon me. Less difficult to read. |
| •813 |
-- Larry Wall in <[email protected]> |
| 814 |
% |
| 815 |
That wouldn't be good enough. |
| •816 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 821 |
% |
| 822 |
The prayer of serenity applies here. To both of us. :-) |
| •823 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 832 |
% |
| 833 |
As pointed out in a followup, Real Perl Programmers prefer things to be |
| 834 |
visually distinct. |
| •835 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 840 |
% |
| 841 |
That should probably be written: |
| 842 |
no !@#$%^&*:@!semicolon |
| •843 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 848 |
% |
| 849 |
Depends on how you define "always". :-) |
| •850 |
-- Larry Wall in <[email protected]> |
| 851 |
% |
| 852 |
'Course, that doesn't work when 'a' contains parentheses. |
| •853 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 866 |
% |
| 867 |
But you'll notice Perl has a goto. |
| •868 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 873 |
% |
| 874 |
Wow, I'm being shot at from both sides. That means I *must* be right. :-) |
| •875 |
-- Larry Wall in <[email protected]> |
| 876 |
% |
| 877 |
You don't have to wait--you can have it in 5.004_54 or so. :-) |
| •878 |
-- Larry Wall in <[email protected]> |
| 879 |
% |
| 880 |
There's something to be said for returning the whole syntax tree. |
| •881 |
-- Larry Wall in <[email protected]> |
| 882 |
% |
| 883 |
It's not really a rule--it's more like a trend. |
| •884 |
-- Larry Wall in <[email protected]> |
| 885 |
% |
| 886 |
Double *sigh*. _04 is going onto thousands of CDs even as we speak, |
| 887 |
so to speak. |
| •888 |
-- Larry Wall in <[email protected]> |
| 889 |
% |
| 890 |
The code also assumes that it's difficult to misspell "a" or "b". :-) |
| •891 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 896 |
% |
| 897 |
No, that'd be silly. |
| •898 |
-- Larry Wall in <[email protected]> |
| 899 |
% |
| 900 |
People who understand context would be steamed to have someone else |
| 901 |
dictating how they can call it. |
| •902 |
-- Larry Wall in <[email protected]> |
| 903 |
% |
| 904 |
For the sake of argument I'll ignore all your fighting words. |
| •905 |
-- Larry Wall in <[email protected]> |
| 906 |
% |
| 907 |
Think of prototypes as a funny markup language--the interpretation is |
| 908 |
left up to the rendering engine. |
| •909 |
-- Larry Wall in <[email protected]> |
| 910 |
% |
| 911 |
Either approach may give birth to various sorts of monstrosities. |
| •912 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 918 |
% |
| 919 |
Obviously your filters are throwing away mail from Randal. :-) |
| •920 |
-- Larry Wall in <[email protected]> |
| 921 |
% |
| 922 |
Beauty? What's that? |
| •923 |
-- Larry Wall in <[email protected]> |
| 924 |
% |
| 925 |
Oh yeah. Forgot about those. Getting senile, I guess... |
| •926 |
-- Larry Wall in <[email protected]> |
| 927 |
% |
| 928 |
'Course, I haven't weighed in yet. :-) |
| •929 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 934 |
% |
| 935 |
I suppose one could claim that an undocumented feature has no |
| 936 |
semantics. :-( |
| •937 |
-- Larry Wall in <[email protected]> |
| 938 |
% |
| 939 |
: How would you disambiguate these situations? |
| 940 |
|
| 941 |
By shooting the person who did the latter. |
| •942 |
-- Larry Wall in <[email protected]> |
| 943 |
% |
| 944 |
Yes, we have consensus that we need 64 bit support. :-) |
| •945 |
-- Larry Wall in <[email protected]> |
| 946 |
% |
| 947 |
: - cut in regexps |
| 948 |
|
| 949 |
I don't think we reached consensus on that. We're still backtracking... |
| •950 |
-- Larry Wall in <[email protected]> |
| 951 |
% |
| 952 |
Maybe it's time to break that. |
| •953 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 965 |
% |
| 966 |
Perhaps they will have to outlaw sending random lists of words. fee fie |
| 967 |
foe foo [sic] |
| •968 |
-- Larry Wall in <[email protected]> |
| 969 |
% |
| 970 |
Hey, if pi == 3, and three == 0, does that make pi == 0? :-) |
| •971 |
-- Larry Wall in <[email protected]> |
| 972 |
% |
| 973 |
I think you're letting your knowledge of internals interfere with your |
| 974 |
linguistic judgement here. |
| •975 |
-- Larry Wall in <[email protected]> |
| 976 |
% |
| 977 |
(Never thought I'd be telling Malcolm and Ilya the same thing... :-) |
| •978 |
-- Larry Wall in <[email protected]> |
| 979 |
% |
| 980 |
And other operators aren't so special syntactically, but weird |
| 981 |
in other ways, like "scalar", and "goto". |
| •982 |
-- Larry Wall in <[email protected]> |
| 983 |
% |
| 984 |
Portability should be the default. |
| •985 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 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 <[email protected]> |
| 995 |
% |
| 996 |
Are you perchance running on a 64-bit machine? |
| •997 |
-- Larry Wall in <[email protected]> |
| 998 |
% |
| 999 |
Almost nothing in Perl serves a single purpose. |
| •1000 |
-- Larry Wall in <[email protected]> |
| 1001 |
% |
| 1002 |
There's some entertainment value in watching people juggle nitroglycerin. |
| •1003 |
-- Larry Wall in <[email protected]> |
| 1004 |
% |
| 1005 |
Reserve your abuse for your true friends. |
| •1006 |
-- Larry Wall in <[email protected]> |
| 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 <[email protected]> |
| 1011 |
% |
| 1012 |
It's hard to tune heavily tuned code. :-) |
| •1013 |
-- Larry Wall in <[email protected]> |
| 1014 |
% |
| 1015 |
Perl will always provide the null. |
| •1016 |
-- Larry Wall in <[email protected]> |
| 1017 |
% |
| 1018 |
It's easy to solve the halting problem with a shotgun. :-) |
| •1019 |
-- Larry Wall in <[email protected]> |
| 1020 |
% |
| 1021 |
Well, I think Perl should run faster than C. :-) |
| •1022 |
-- Larry Wall in <[email protected]> |
| 1023 |
% |
| 1024 |
To Perl, or not to Perl, that is the kvetching. |
| •1025 |
-- Larry Wall in <[email protected]> |
| 1026 |
% |