PageRenderTime 52ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/old-site/archive/2002-December/000968.html

http://github.com/bjdean/cambridge-pm-website
HTML | 106 lines | 90 code | 13 blank | 3 comment | 0 complexity | a5016dfde559b7bd4c3e9082eb94ec92 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  2. <HTML>
  3. <HEAD>
  4. <TITLE> [cam.pm] Christmas Perl Programming
  5. </TITLE>
  6. <LINK REL="Index" HREF="index.html" >
  7. <LINK REL="made" HREF="mailto:nick%40unfortu.net">
  8. <META NAME="robots" CONTENT="index,nofollow">
  9. <LINK REL="Previous" HREF="000966.html">
  10. <LINK REL="Next" HREF="000969.html">
  11. </HEAD>
  12. <BODY BGCOLOR="#ffffff">
  13. <H1>[cam.pm] Christmas Perl Programming
  14. </H1>
  15. <B>Nicholas Clark
  16. </B>
  17. <A HREF="mailto:nick%40unfortu.net"
  18. TITLE="[cam.pm] Christmas Perl Programming">nick@unfortu.net
  19. </A><BR>
  20. <I>Tue, 10 Dec 2002 11:38:05 +0000</I>
  21. <P><UL>
  22. <LI> Previous message: <A HREF="000966.html">[cam.pm] Christmas Perl Programming
  23. </A></li>
  24. <LI> Next message: <A HREF="000969.html">[cam.pm] Christmas Perl Programming
  25. </A></li>
  26. <LI> <B>Messages sorted by:</B>
  27. <a href="date.html#968">[ date ]</a>
  28. <a href="thread.html#968">[ thread ]</a>
  29. <a href="subject.html#968">[ subject ]</a>
  30. <a href="author.html#968">[ author ]</a>
  31. </LI>
  32. </UL>
  33. <HR>
  34. <!--beginarticle-->
  35. <PRE>On Tue, Dec 10, 2002 at 10:53:15AM +0000, Matthew Byng-Maddick wrote:
  36. &gt;<i> On Tue, Dec 10, 2002 at 10:50:03AM +0000, Philip Kendall wrote:
  37. </I>&gt;<i> &gt; On Sat, Dec 07, 2002 at 02:40:09AM +0000, Matthew Byng-Maddick wrote:
  38. </I>&gt;<i> &gt; &gt; * a valid programme entry (such as the example below) can be overlaid by
  39. </I>&gt;<i> &gt; &gt; the template below in such a way that the characters in the entry are
  40. </I>&gt;<i> &gt; &gt; non-whitespace if the corresponding character in the template is a &quot;#&quot;
  41. </I>&gt;<i> &gt; &gt; and that they are whitespace if the corresponding character is a &quot; &quot;.
  42. </I>&gt;<i> &gt; &gt; Trailing space will be ignored.
  43. </I>&gt;<i> &gt; How are 'character' and 'whitespace' defined?
  44. </I>&gt;<i>
  45. </I>&gt;<i> I feel &quot;codepoint&quot; and &quot;thing that matches /\s/&quot; respectively, is probably
  46. </I>&gt;<i> appropriate, if you're going to bring Unicode madness into it...
  47. </I>
  48. I've forgotten if there was an acceptable list of perl versions published in
  49. the rules. The UTF8 regexp code is not perfect, and several bugs have been
  50. fixed in the development version, and merged across into 5.8.1-to-be.
  51. Mainly bugs to do with matches and other upper/lower casing on $1 (etc) from a
  52. previous match, such as this code:
  53. #!/usr/bin/perl -w
  54. for my $a (0,1) {
  55. $_ = 'readin,database,readout';
  56. if ($ARGV[0]) {
  57. $_ .= chr 256;
  58. chop;
  59. }
  60. /(.+)/;
  61. my @d = split /[,]/,$1;
  62. print join (':'<A HREF="mailto:,@d">,@d</A>), &quot;\n&quot;;
  63. }
  64. __END__
  65. Without any arguments (not utf8) I see:
  66. readin:database:readout
  67. readin:database:readout
  68. with $ARGV[1] true, in 5.8.0 I see:
  69. #adin:database:readout
  70. readin:database:readout
  71. The bug has been found and fixed by AMS in the development tree. They seem to
  72. related to how things like uppercase tables get initialised the first time
  73. they are used.
  74. Nicholas Clark
  75. --
  76. Brainfuck better than perl? <A HREF="http://www.perl.org/advocacy/spoofathon/">http://www.perl.org/advocacy/spoofathon/</A>
  77. </PRE>
  78. <!--endarticle-->
  79. <HR>
  80. <P><UL>
  81. <!--threads-->
  82. <LI> Previous message: <A HREF="000966.html">[cam.pm] Christmas Perl Programming
  83. </A></li>
  84. <LI> Next message: <A HREF="000969.html">[cam.pm] Christmas Perl Programming
  85. </A></li>
  86. <LI> <B>Messages sorted by:</B>
  87. <a href="date.html#968">[ date ]</a>
  88. <a href="thread.html#968">[ thread ]</a>
  89. <a href="subject.html#968">[ subject ]</a>
  90. <a href="author.html#968">[ author ]</a>
  91. </LI>
  92. </UL>
  93. </body></html>