/
39929
668 lines (521 loc) · 24.2 KB
/
39929
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="shortcut icon" href="//use.perl.org/favicon.ico">
<title>Journal of masak (6289)</title>
<link rel="stylesheet" type="text/css" media="screen, projection" href="//images.use.perl.org/base.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="screen, projection" href="//images.use.perl.org/comments.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="screen, projection" href="//images.use.perl.org/useperl.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="print" href="//images.use.perl.org/print.css?T_2_5_0_235">
<link rel="stylesheet" type="text/css" media="handheld" href="//images.use.perl.org/handheld.css?T_2_5_0_235">
<script src="//images.use.perl.org/jquery/jquery-1.2.6.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/jquery/jquery.metadata.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/slash.util.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/jquery/jquery.slashdot.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/yahoo.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/dom.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/event.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/dragdrop.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/animation.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/yui/calendar.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/sd_calendar.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/slash.article-info.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/tag-ui.js?T_2_5_0_235" type="text/javascript"></script>
<script src="//images.use.perl.org/common.js?T_2_5_0_235" type="text/javascript"></script>
<!-- start template: ID 121, header;misc;default -->
<link rel="top" title="All the Perl that's Practical to Extract and Report" href="//use.perl.org/" >
<link rel="search" title="Search use Perl" href="//use.perl.org/search.pl">
<link rel="author" title="masak" href="//use.perl.org/~masak/">
<link rel="alternate" title="masak's Journal RSS" href="http://use.perl.org/~masak/journal/rss" type="application/rss+xml">
<link rel="alternate" title="masak's Friends' Journals RSS" href="http://use.perl.org/~masak/journal/friends/rss" type="application/rss+xml">
<link rel="alternate" title="Most Recent Journals RSS" href="//use.perl.org/journal.pl?op=top&content_type=rss" type="application/rss+xml">
<link rel="alternate" title="Most Active Journals RSS" href="//use.perl.org/journal.pl?op=top&type=count&content_type=rss" type="application/rss+xml">
<link rel="alternate" title="Most Befriended Journals RSS" href="//use.perl.org/journal.pl?op=top&type=friends&content_type=rss" type="application/rss+xml">
<link rel="alternate" title="use Perl RSS" href="//use.perl.org/index.rss" type="application/rss+xml">
</head>
<body class="useperlorg">
<div id="top_parent"></div>
<div id="jump">
<a href="#main-articles">Stories</a>
<br>
<a href="#blocks">Slash Boxes</a>
<br>
<a href="#comments">Comments</a>
</div>
<div class="ad1">
</div>
<div id="frame">
<!-- UsePerl Ad Start -->
<div class="ad1"><!-- ad position 1 -->
<div id="fad1" style="text-align:center">
<!-- DoubleClick Ad Tag 1 -->
<script type="text/javascript">
dfp_ord=Math.random()*10000000000000000;
dfp_tile = 1;
document.write('<script type="text/javascript" src="http://ad.doubleclick.net/adj/ostg.useperl/mainpage_p1_leader;pg=index;logged_in=0;tile='+dfp_tile+';ord='+dfp_ord+'?"><\/script>');
dfp_tile++;
</script>
</div>
<!-- End DoubleClick Ad Tag 1 --></div>
<!-- UsePerl Ad End -->
<div id="topnav">
<div id="logo">
<h1>
<a href="//use.perl.org">use Perl</a>
</h1>
</div>
<div class="search">
<form method="get" action="//use.perl.org/search.pl">
<fieldset>
<legend></legend>
<label>Search <strong>use Perl</strong></label>
<input type="text" name="query" value="" size="20">
<input type="submit" value="Go" class="button">
</fieldset>
</form>
</div>
</div>
<div id="slogan">
<h2>
All the Perl that's Practical to Extract and Report
</h2>
</div>
<div id="journalnav">
<div id="links">
<!-- start template: ID 474, sidebox;misc;default -->
<div class="block">
<div class="title" id="navigation-title">
<h4>
Navigation
</h4>
</div>
<div class="content" id="navigation-content">
<ul>
<li class="begin">
<a href="//use.perl.org/faq.shtml">FAQ</a>
</li>
<li>
<a href="//use.perl.org/about.shtml">About</a>
</li>
<li>
<a href="//use.perl.org/submit.pl">Submit Story</a>
</li>
<li>
<a href="//use.perl.org/search.pl">Older Stories</a>
</li>
<li>
<a href="//use.perl.org/topics.shtml">Topics</a>
</li>
<li>
<a href="//use.perl.org/pollBooth.pl">Polls</a>
</li>
<li>
<a href="//use.perl.org/journal.pl">Journals</a>
</li>
<li>
<a href="//use.perl.org/authors.pl">Authors</a>
</li>
<li>
<a href="//use.perl.org/modulelist/">New Modules</a>
</li>
<li>
<a href="//use.perl.org/users.pl?op=edithome">Preferences</a>
</li>
</ul>
</div>
</div>
<!-- end template: ID 474, sidebox;misc;default -->
</div>
</div>
<div id="contents">
<div id="journal">
<!-- end template: ID 121, header;misc;default -->
<!-- start template: ID 55, journalhead;journal;default -->
<div id="slashboxes">
<!-- start template: ID 474, sidebox;misc;default -->
<div class="block">
<div class="title" id="userlogin-title">
<h4>
use Perl Log In
</h4>
</div>
<div class="content" id="userlogin-content">
<form action="//use.perl.org/login.pl" method="post">
<fieldset>
<legend>Log In</legend>
<label>
Nickname
</label>
<input type="text" name="unickname" size="20" value="">
<label>
Password
</label>
<input type="hidden" name="returnto" value="//use.perl.org/">
<input type="hidden" name="op" value="userlogin">
<input type="password" name="upasswd" size="20">
<label class="checkbox">
<input type="checkbox" name="login_temp" value="yes">
Public Terminal
</label>
<input type="submit" name="userlogin" value="Log in" class="button">
</fieldset>
</form>
<p>
[ <b>
<a href="//use.perl.org/login.pl?op=newuserform">
Create a new account
</a>
</b> ]
</p>
</div>
</div>
<!-- end template: ID 474, sidebox;misc;default -->
<!-- start template: ID 474, sidebox;misc;default -->
<div class="block">
<div class="title" id="user-info-title">
<h4>
masak (6289)
</h4>
</div>
<div class="content" id="user-info-content">
<a href="//use.perl.org/~masak/">masak</a> <br> (email not shown publicly)<br><a href="http://masak.org/carl" rel="nofollow">http://masak.org/carl</a><br><hr>Been programming Perl since 2001. Found Perl 6 somewhere around 2004, and fell in love. Now developing November (a Perl 6 wiki), Druid (a Perl 6 board game), pls (a Perl 6 project installer), GGE (a regex engine), and Yapsi (a Perl 6 implementation). Heavy user of and irregular committer to Rakudo.
</div>
</div>
<!-- end template: ID 474, sidebox;misc;default -->
</div>
<div id="users-blocks">
<!-- start template: ID 376, tabbedmenu;misc;default -->
<!-- end template: ID 376, tabbedmenu;misc;default -->
<div class="generaltitle" >
<div class="title">
<h3 >
<a href="//use.perl.org/~masak/journal/">Journal</a> of <a href="//use.perl.org/~masak/">masak</a> (6289)
</h3>
</div>
</div>
<div id="usermenu">
<ul class="menu">
<li><span class="begin"><a href="//use.perl.org/~masak/" class="begin">Info</a></span></li><li class="selected"><b><a href="//use.perl.org/~masak/journal/">Journal</a></b></li><li><a href="//use.perl.org/~masak/firehose/">Firehose</a></li><li><a href="//use.perl.org/~masak/friends/">Friends</a></li><li><a href="//use.perl.org/~masak/fans/">Fans</a></li><li><a href="//use.perl.org/~masak/foes/">Foes</a></li><li><a href="//use.perl.org/~masak/freaks/">Freaks</a></li><li><a href="//use.perl.org/~masak/tags/">Tags</a></li><li><a href="//use.perl.org/~masak/bookmarks/" class="end">Bookmarks</a></li>
</ul>
</div><div class="generalbody">
<!-- start template: ID 376, tabbedmenu;misc;default -->
<ul class="menu">
<li><span class="begin"><a href="//use.perl.org/journal.pl?op=top" class="begin">Top 10</a></span></li><li><a href="//use.perl.org/journal.pl?op=friends" class="end">Friend's Journals</a></li>
</ul>
<!-- end template: ID 376, tabbedmenu;misc;default -->
<!-- end template: ID 55, journalhead;journal;default -->
<!-- start template: ID 65, slashdot;journal;default -->
<div id="journalslashdot">
<div class="journaldate">Sunday November 22, 2009</div>
<div class="details">10:31 AM</div>
<div class="title">
<h3>What you can do with GGE::OPTable that you couldn't without</h3>
</div>
<div class="adminoptions">
[
<a href="//use.perl.org/~masak/journal/39929">#39929</a>
]
</div>
<div class="intro"><p>In order to explain what I think is exciting about the OPTable parser in GGE,
and what you can suddenly do in Rakudo with it that you couldn't before, I
put together a small script that parses and evaluates simple algebraic
expressions.</p><p> <code>
$ <b>perl6 examples/algebra</b> <br>
Redeclaration of variable $top<br>
Redeclaration of variable $topprec<br>
Use of uninitialized value<br>
> <b>2 + 2</b> <br>
4<br>
> <b>2 + 2 + 2 + 2 + 2 + 2 + 2</b> <br>
14<br>
> <b>2 2</b> <br>
Could not parse the arithmetic expression<br>
> <b>10 * 10 + 4</b> <br>
104<br>
> <b>4 + 10 * 10</b> <br>
104<br>
> <b>0x20 * 0x4</b> <br>
128<br>
> <b>0123</b> <br>
Leading 0 does not indicate octal in Perl 6<br>
123<br>
> <b>0b1101110 + 0o412</b> <br>
376<br>
> <b>4e3 +<nobr> <wbr></nobr>:4<301></b> <br>
4049<br>
> <b>^D</b> <br>
$
</code> </p><p>Sorry about the warnings in the beginning, I'll track them down eventually. 哈哈 (<b>Update 2009-12-01:</b> Found them. Leaving them in for historical authenticity.)</p><p>Anyway, you'll see from the above that the script undestands the addition and multiplication operators, it can take long chains of them, it gets their precedence right, and it understands hexadecimal, binary, octal, scientific notation and arbitrary radices.</p><p>And it weighs in at <a href="http://github.com/masak/gge/blob/master/examples/algebra" rel="nofollow">56 lines of code</a>! (48 if you don't count the empty lines.) No, that was not me going mad trying to compress a lot of code into those ~50 lines, I'm just leveraging <code>GGE::OPTable</code> (for generating the parse tree) and <code>Perl6::Grammar</code> (for parsing the different types of numbers). Even the warning about the leading 0 for the non-octal <code>0123</code> gets through intact from the Perl 6 parser. Unintended but kinda nice.</p><p>In a sense, Perl 6 (and Rakudo) already has this kind of expressive awesomeness built in, because you can define your own operators as subs and methods. But in another sense, it doesn't, because in order to use those operators, you have to put them in your program, or eval them. With <code>GGE::OPTable</code>, you can create your own domain-specific expression language, feed in an expression, and get an AST back.</p><p>I'm sure other bloggers can run with this and produce even more impressive examples than just the parsing of <code>+</code> and <code>*</code>. Happy hacking!</p><p>(<b>Update:</b> After thinking about it a bit, I refactored the parsing sub in <code>examples/algebra</code> into <code>GGE::OPTable</code>, so that people don't have to write their own. Now the code is cleaner, and only 45 lines long, or 39 if you don't count the empty lines.)</p></div>
<div class="journalpage">
<br>
<a href="//use.perl.org/journal.pl?op=list&uid=6289" class="all">List all Journal entries</a>
</div>
</div>
<!-- end template: ID 65, slashdot;journal;default -->
</div></div>
<!-- start template: ID 159, printCommentsMain;misc;default -->
<a name="acomments"></a>
<div class="commentwrap" id="commentwrap">
<div class="commentBox" style="font-size: 120%">
<div>
<span class="escape-link"><a href="//use.perl.org/~masak/journal/39929" title="Back to Article - What you can do with GGE::OPTable that you couldn't without">What you can do with GGE::OPTable that you couldn't without</a></span>
<span class="commentBoxLinks"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_d"></span> More</a> |
<a href="//use.perl.org/login.pl" onclick="show_login_box(); return false">Login</a>
| <a href="//use.perl.org/comments.pl?sid=44191&op=reply&threshold=0&commentsort=0&mode=thread" onclick="D2.replyTo(0); return false;">Reply</a></span>
</div>
</div>
<div class="commentBoxForm" id="commentControlBox">
<div></div>
<div class="commentBox">
<small>
<b>The Fine Print:</b> The following comments are owned by whoever posted them. We are not responsible for them in any way.
</small>
<noscript><br><small>Without JavaScript enabled, you might want to
use <a href="//use.perl.org/comments.pl?sid=44191&threshold=0&commentsort=0&mode=thread&no_d2=1">the classic discussion system</a> instead. If you <a href="//use.perl.org/login.pl">login</a>, you can remember this preference.
</small></noscript>
</div>
</div>
<div id="d2out" class="horizontal">
<div id="d2act" class="hide">
<div class="loki" id="gods">
<div class="block">
<div class="title">
<h4>
<span class="h-inline">
<a href="//use.perl.org/~masak/journal/39929" title="Back to Article - What you can do with GGE::OPTable that you couldn't without">What you can do with GGE::OPTable that you couldn't without</a></span>
<span class="titlecount"><a href="//use.perl.org/~masak/journal/39929#topcomment" title="Back to Top Comment - What you can do with GGE::OPTable that you couldn't without"><span id="titlecountnum">0</span> Comments</a></span>
<span class="ccw-header-links"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_b"></span> More</a> |
<a href="//use.perl.org/login.pl" onclick="show_login_box(); return false">Login</a>
| <a href="//use.perl.org/comments.pl?sid=44191&op=reply&threshold=0&commentsort=0&mode=thread" onclick="D2.replyTo(0); return false;">Reply</a></span>
<span id="d2toggle" title="Toggle window location" onclick="D2.toggleDisplayOptions()" class="close">/</span>
</h4>
</div>
</div>
<script type="text/javascript">
gCommentControlWidget = null;
YAHOO.slashdot.ThresholdApp = function() {
return {
init: function() {
gCommentControlWidget = new YAHOO.slashdot.ThresholdWidget('X');
gCommentControlWidget.setTHT(D2.user_threshold(), D2.user_highlightthresh());
D2.updateTotals();
}
};
}();
YAHOO.util.Event.addListener(window, "load", YAHOO.slashdot.ThresholdApp.init);
</script>
<div id="bones">
<div id="ccw">
<div id="ccw-body" class="ccw-core">
<div id="ccw-panel-container" class="ccw-core">
<div id="ccw-full-panel" class="ccw-panel">
<div class="ccw-panel-border"></div>
<div id="ccw-full-count-pos" class="ccw-core-pos ccw-count-pos">
<span id="ccw-full-count-text" class="ccw-count-text"><span id="currentFull"></span><span id="ccw-full-phrase"> Full</span></span>
</div>
</div>
<div id="ccw-abbr-panel" class="ccw-panel">
<div class="ccw-panel-border"></div>
<div id="ccw-abbr-count-pos" class="ccw-core-pos ccw-count-pos">
<span id="ccw-abbr-count-text" class="ccw-count-text"><span id="currentOneline"></span><span id="ccw-abbr-phrase"> Abbreviated</span></span>
</div>
</div>
<div id="ccw-hide-panel" class="ccw-panel">
<div id="ccw-hide-count-pos" class="ccw-core-pos ccw-count-pos">
<span id="ccw-hide-count-text" class="ccw-count-text"><span id="currentHidden"></span><span id="ccw-hide-phrase"> Hidden</span></span>
</div>
</div>
</div>
<div id="ccw-control" class="ccw-core">
<div id="ccw-centering-rail" class="ccw-core">
<div id="ccw-hide-bar-pos" class="ccw-core-pos">
<div id="ccw-hide-bar" class="ccw-bar">
<div id="ccw-hide-bar-tab" class="ccw-bar-tab"></div>
<div id="ccw-hide-bar-upzone" class="ccw-upzone" onclick="gCommentControlWidget.stepTHT(HIDE_BAR, +1)"></div>
<div id="ccw-hide-bar-downzone" class="ccw-downzone" onclick="gCommentControlWidget.stepTHT(HIDE_BAR, -1)"></div>
</div>
</div>
<div id="ccw-abbr-bar-pos" class="ccw-core-pos">
<div id="ccw-abbr-bar" class="ccw-bar">
<div id="ccw-abbr-bar-tab" class="ccw-bar-tab"></div>
<div id="ccw-abbr-bar-upzone" class="ccw-upzone" onclick="gCommentControlWidget.stepTHT(ABBR_BAR, +1)"></div>
<div id="ccw-abbr-bar-downzone" class="ccw-downzone" onclick="gCommentControlWidget.stepTHT(ABBR_BAR, -1)"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="commentControlFooter"><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_c"></span> More</a> |
<a href="//use.perl.org/login.pl" onclick="show_login_box(); return false">Login</a>
| <a href="//use.perl.org/comments.pl?sid=44191&op=reply&threshold=0&commentsort=0&mode=thread" onclick="D2.replyTo(0); return false;">Reply</a><div id="login_cover" style="display:none" onclick="hide_login_box()"></div>
<div id="login_box" style="display:none">
<div class="generaltitle" >
<div class="title">
<h3 >
Please Log In to Continue<a href="#" onclick="hide_login_box(); return false" class="close" title="Close this box"><img id="login_box_close" src="//images.use.perl.org/sic_close.png" alt="Close"></a>
</h3>
</div>
</div>
<div id="login_box_content">
<form action="//use.perl.org/login.pl" method="post">
<fieldset>
<legend>Log In</legend>
<label>
Nickname
</label>
<input type="text" name="unickname" size="20" value="">
<label>
Password
</label>
<input type="hidden" name="returnto" value="//use.perl.org/comments.pl?sid=44191">
<input type="hidden" name="op" value="userlogin">
<input type="password" name="upasswd" size="20">
<label class="checkbox">
<input type="checkbox" name="login_temp" value="yes">
Public Terminal
</label>
<input type="submit" name="userlogin" value="Log in" class="button">
</fieldset>
</form>
<p>
[ <b>
<a href="//use.perl.org/login.pl?op=newuserform">
Create a new account
</a>
</b> ]
</p>
</div></div>
<script type="text/javascript">logged_in = 0</script></div>
<div id="commentControlBoxStatus" class="hide"><b>Loading... please wait.</b></div>
</div>
</div>
</div>
</div>
<a name="topcomment"></a>
<!-- end template: ID 159, printCommentsMain;misc;default -->
<!-- start template: ID 157, printCommComments;misc;default -->
<script src="//images.use.perl.org/comments.js?T_2_5_0_235" type="text/javascript"></script>
<script type="text/javascript">
<!--
D2.d2_keybindings_disable()[191] = 1;
window.onscroll = D2.d2act;
D2.boxStatus(1);
D2.comments(undefined);
D2.thresh_totals({6:{6:{1:0,3:0,2:0}},4:{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},1:{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},1:{1:0,3:0,2:0},3:{1:0,3:0,2:0},2:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},3:{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},3:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},0:{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},1:{1:0,3:0,2:0},3:{1:0,3:0,2:0},0:{1:0,3:0,2:0},2:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},2:{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},3:{1:0,3:0,2:0},2:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},5:{6:{1:0,3:0,2:0},5:{1:0,3:0,2:0}},"-1":{6:{1:0,3:0,2:0},4:{1:0,3:0,2:0},1:{1:0,3:0,2:0},3:{1:0,3:0,2:0},0:{1:0,3:0,2:0},2:{1:0,3:0,2:0},5:{1:0,3:0,2:0},"-1":{1:0,3:0,2:0}}});
D2.root_comment(0);
D2.root_comments([]);
D2.root_comments_hash({});
D2.d2_comment_order(0);
D2.user_uid(7);
D2.user_is_anon(1);
D2.user_is_admin(0);
D2.user_is_subscriber(0);
D2.user_threshold(0);
D2.user_highlightthresh(4);
D2.user_d2asp(0);
D2.discussion_id(44191);
//-->
</script>
<ul id="commentlisting" class="d2">
<li id="roothiddens" class="hide"></li>
</ul>
<div id="replyto_0"></div>
<div id="discussion_buttons">
<span class="nbutton"><p><b><a href="#" onclick="D2.ajaxFetchComments(0,1); return false"><span id="more_comments_num_a" class="hide">Get More Comments</span></a></b></p></span>
<span class="nbutton"><p><b><a href="//use.perl.org/comments.pl?sid=44191&op=reply&threshold=0&commentsort=0&mode=thread" onclick="D2.replyTo(0); return false;">Reply</a></b></p></span>
</div>
<script type="text/javascript">
<!--
D2.currents()['hidden'] = 0;
D2.currents()['full'] = 0;
D2.currents()['oneline'] = 0;
// D2.currents_total(0);
D2.abbrev_comments({});
D2.noshow_comments([]);
D2.pieces_comments([]);
D2.init_hiddens([]);
D2.finishLoading();
if (D2.thresh_totals()[6][6][1] == 0) {
D2.replyTo(0, 1);
}
//-->
</script>
<!-- end template: ID 157, printCommComments;misc;default -->
<!-- start template: ID 112, footer;misc;default -->
</div>
</div>
<div id="footer">
<div class="download">
<!-- START DOWNLOAD PERL -->
<!-- Perl Mongers, Inc. web@perlmongers.org -->
<a href="http://www.cpan.org/ports/index.html"><img src="http://www.perl.org/Images/download_perl.gif" width="102" height="42" alt="Download Perl Now!"></a>
<!-- END DOWNLOAD PERL -->
</div>
<div class="sitelogo">
<a href="//use.perl.org/">
<img src="http://images.use.perl.org/topics/useperl.gif" alt="useperl">
</a>
</div>
<em>
And don't tell me there isn't one bit of difference between null and space,<BR>
because that's exactly how much difference there is. :-)<BR>
--Larry Wall in <10209@jpl-devvax.JPL.NASA.GOV>
</em>
</div>
<div class="copyright">
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
</div>
<div class="btmnav">
<ul>
<li class="begin">
<a href="//use.perl.org/faq.shtml">FAQ</a>
</li>
<li>
<a href="//use.perl.org/about.shtml">About</a>
</li>
<li>
<a href="//use.perl.org/submit.pl">Submit Story</a>
</li>
<li>
<a href="//use.perl.org/search.pl">Older Stories</a>
</li>
<li>
<a href="//use.perl.org/topics.shtml">Topics</a>
</li>
<li>
<a href="//use.perl.org/pollBooth.pl">Polls</a>
</li>
<li>
<a href="//use.perl.org/journal.pl">Journals</a>
</li>
<li>
<a href="//use.perl.org/authors.pl">Authors</a>
</li>
<li>
<a href="//use.perl.org/modulelist/">New Modules</a>
</li>
<li>
<a href="//use.perl.org/users.pl?op=edithome">Preferences</a>
</li>
</ul>
</div>
</div>
<div id="modal_cover" style="display:none" onclick="hide_modal_box()"></div>
<div id="modal_box" style="display:none">
<div class="generaltitle" >
<div class="title"><h3><span id="preference_title"></span> <a href="#" onclick="hide_modal_box(); return false"><img src="//images.use.perl.org/sic_close.png" alt="Close"></a></h3></div>
</div>
<div id="modal_box_content"></div>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-32013-15";
urchinTracker();
</script>
</body>
</html>
<!-- end template: ID 112, footer;misc;default -->