Front page | perl.beginners |
Postings from August 2009
Re: two questions
Thread Previous
|
Thread Next
From:
Shawn H. Corey
Date:
August 5, 2009 08:00
Subject:
Re: two questions
Message ID:
4A799E62.8030009@gmail.com
Chas. Owens wrote:
> On Wed, Aug 5, 2009 at 10:01, John W. Krahn<jwkrahn@shaw.ca> wrote:
> snip
>>> If you want to use the string in a URL then it cannot be truly random,
>>> because
>>> not every character can appear in a URL.
>> That does not make sense.
> snip
>
> I believe he/she meant that not every character is allowed in a regex,
> so you can't just generate a random string made up of any characters.
> You must use a restricted character set.
>
I think he means you can't use characters like '/' since they have
special meanings in HTTP. But you can translate them to the percent-hex
notation ( '/' becomes %2F ) before you use them.
--
Just my 0.00000002 million dollars worth,
Shawn
Programming is as much about organization and communication
as it is about coding.
I like Perl; it's the only language where you can bless your
thingy.
Thread Previous
|
Thread Next