However, I think that the [8-100] construction doesn't make sense, and each digit will be replace individually rather then in two or three digit sets.

I tried the following construction instead, but it wasn't working either:

Code:

'8'..'100'

The second problem is the tmp.txt file is in this format:

Quote

33 54 3 94 86 9 16 98 3 49 90 64 32 36

Click to expand...

and the code is only reading in the first number (33). I realize the problem is that when I break it into an array the first element is all that I am looking at, which is wrong. I can I make it go through the entire array?

Sorry! I'm trying to work though this with a perl book in front of me, but the examples are relatively limited.

Thanks a lot. I actually came up with a less elegant solution- in the random number program I printed a new line character and then just went through them one line a time.

I'm still not sure as to how I can have different number ranges be replaced by different characters.

Click to expand...

Well, Like you found out you can't easily (or at all) use a character class to
do that. You would either use split and go through some if elses or you start playing dirty/unreadable and do something like this:

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.