Home arrow Perl Programming arrow Page 4 - Perl Text: Quoting Without Quote Marks

You Can Look But Don't Touch - Perl

In our last article we introduced you to using text in Perl. By the time we were done, there was text everywhere. But that's okay. In this tutorial we will learn to clean that text up and put it in its place. So roll up those sleeves and prepare to get organized. No more sloppy text for you!

TABLE OF CONTENTS:
  1. Perl Text: Quoting Without Quote Marks
  2. Working with the Here Document...Over There
  3. Formatting with the Here Document
  4. You Can Look But Don't Touch
By: James Payne
Rating: starstarstarstarstar / 2
March 03, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

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...



 
 
>>> More Perl Programming Articles          >>> More By James Payne
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PERL PROGRAMMING ARTICLES

- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: