Perl Text: Quoting Without Quote Marks - You Can Look But Don't Touch (
Page 4 of 4 )
Before we end, let's talk about ASCII characters. As you are probably aware, computers don't see text as we do. For instance, a computer sees a lowercase “u” as the number code 117 and the uppercase “U” as 85. There are 255 ASCII values, 93 of which are known as the visible characters. These are comprised of lowercase a-z, uppercase A-Z, the numbers 0-9, and the following characters: !”#$%&'()*+,-./:;<=>?@[]^_`{|}~.
Below is a table listing the decimal values:
|
Dec |
Char |
Dec |
Char |
Dec |
Char |
Dec |
Char |
|
033 |
! |
059 |
; |
085 |
U |
111 |
o |
|
034 |
" |
060 |
< |
086 |
V |
112 |
p |
|
035 |
# |
061 |
= |
087 |
W |
113 |
q |
|
036 |
$ |
062 |
> |
088 |
X |
114 |
r |
|
037 |
% |
063 |
? |
089 |
Y |
115 |
s |
|
038 |
& |
064 |
@ |
090 |
Z |
116 |
t |
|
039 |
' |
065 |
A |
091 |
[ |
117 |
u |
|
040 |
( |
066 |
B |
092 |
|
118 |
v |
|
041 |
) |
067 |
C |
093 |
] |
119 |
w |
|
042 |
* |
068 |
D |
094 |
^ |
120 |
x |
|
043 |
+ |
069 |
E |
095 |
_ |
121 |
y |
|
044 |
, |
070 |
F |
096 |
` |
122 |
z |
|
045 |
- |
071 |
G |
097 |
a |
123 |
{ |
|
046 |
. |
072 |
H |
098 |
b |
124 |
| |
|
047 |
/ |
073 |
I |
099 |
c |
125 |
} |
|
048 |
0 |
074 |
J |
100 |
d |
126 |
~ |
|
049 |
1 |
075 |
K |
101 |
e |
|
|
|
050 |
2 |
076 |
L |
102 |
f |
|
|
|
051 |
3 |
077 |
M |
103 |
g |
|
|
|
052 |
4 |
078 |
N |
104 |
h |
|
|
|
053 |
5 |
079 |
O |
105 |
i |
|
|
|
054 |
6 |
080 |
P |
106 |
j |
|
|
|
055 |
7 |
081 |
Q |
107 |
k |
|
|
|
056 |
8 |
082 |
R |
108 |
l |
|
|
|
057 |
9 |
083 |
S |
109 |
m |
|
|
|
058 |
: |
084 |
T |
110 |
n |
|
|
Well that's it for this tutorial. In our next episode we will wrap up our conversation on text in Perl, and move onto working with math and numbers.
Till then...