Re: strange effect with [:lower:] in perl
From: Abigail (abigail_at_abigail.nl)
Date: 10/27/03
- Next message: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Previous message: Jim Gibson: "Re: Perl and IIS - script runs but 'The page cannot be displayed'"
- In reply to: Alan J. Flavell: "Re: strange effect with [:lower:] in perl"
- Next in thread: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Reply: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Reply: Alan J. Flavell: "Re: strange effect with [:lower:] in perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Oct 2003 19:11:01 GMT
Alan J. Flavell (flavell@ph.gla.ac.uk) wrote on MMMDCCIX September
MCMXCIII in <URL:news:Pine.LNX.4.53.0310271613300.27527@ppepc56.ph.gla.ac.uk>:
"" On Mon, 27 Oct 2003, Abigail wrote:
""
"" > Because now you *can* do the same as with ranges: you can combine them.
"" >
"" > [a-z0-9] # Lowercase letters *and* digits.
""
"" Surely that only refers to a subset of what Unicode considers to be
"" "letters"?
Yeah, but that's what [:lower:] seems to do too:
$ perl -wle 'for (0x00 .. 0x80) {
printf "%02x %s\n", $_, chr if chr () =~ /[[:lower:]]/}'
61 a
62 b
63 c
64 d
65 e
66 f
67 g
68 h
69 i
6a j
6b k
6c l
6d m
6e n
6f o
70 p
71 q
72 r
73 s
74 t
75 u
76 v
77 w
78 x
79 y
7a z
No lowercase accented letters here.
Abigail
--
perl5.004 -wMMath::BigInt -e'$^V=Math::BigInt->new(qq]$^F$^W783$[$%9889$^F47]
.qq]$|88768$^W596577669$%$^W5$^F3364$[$^W$^F$|838747$[8889739$%$|$^F673$%$^W]
.qq]98$^F76777$=56]);$^U=substr($]=>$|=>5)*(q.25..($^W=@^V))=>do{print+chr$^V
%$^U;$^V/=$^U}while$^V!=$^W'
- Next message: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Previous message: Jim Gibson: "Re: Perl and IIS - script runs but 'The page cannot be displayed'"
- In reply to: Alan J. Flavell: "Re: strange effect with [:lower:] in perl"
- Next in thread: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Reply: Ben Morrow: "Re: strange effect with [:lower:] in perl"
- Reply: Alan J. Flavell: "Re: strange effect with [:lower:] in perl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|