in reply to How do I generate a sequential string?
Have a look at range-based magical autoincrement and then try something like (warning: untested)
my @chars = (a..z, A..Z, 0..9); my $glob = '{' . join(',', @chars) . '}'; $glob x= 10; while (my $string = glob $glob) { print $string, "\n"; }
Juerd
- http://juerd.nl/
- spamcollector_perlmonks@juerd.nl (do not use).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re:Interesting anti-virus reaction to this code.
by Anonymous Monk on Apr 23, 2003 at 04:05 UTC |