Re: interpoliation within regexp
- From: derekbellnersmith@xxxxxxxxx (Derek B. Smith)
- Date: Thu, 28 Sep 2006 13:28:52 -0700 (PDT)
Why not just specify a non-digit for the first
character:
my @a = ( 0 .. 9, 'a' .. 'z', 'A' .. 'Z');
my $password = join '', $a[ 10 + rand( @a - 10 ) ],
map $a[ rand @a ], 1 .. 5;
John
Ok great, but I do not fully understand this. Will you
explain in English?
thx
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
.
- Follow-Ups:
- Re: interpoliation within regexp
- From: D. Bolliger
- Re: interpoliation within regexp
- References:
- Re: interpoliation within regexp
- From: John W. Krahn
- Re: interpoliation within regexp
- Prev by Date: Re: --compare current date file with previous day
- Next by Date: Re: Hash problem
- Previous by thread: Re: interpoliation within regexp
- Next by thread: Re: interpoliation within regexp
- Index(es):
Relevant Pages
|
|