[Israel.pm] BruteForcing function
Gaal Yahas
gaal at forum2.org
Sun Dec 19 11:58:22 PST 2004
(Trying out Thunderbird. Please email me in private if you spot any
glitches in how my mail looks like.)
I wrote:
> Fortunately, this is easy too. An array implicitly gives each member a
> numerical ID:
>
> @alphabet = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9', qw/!_-/ );
> for (0 .. $#alphabet) {
> print $alphabet[$_];
> }
That should have been qw/! _ -/. I got a little too lazy; these are
probably better
off listed as seperately quoted literal strings anyway:
@alphabet = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9', '!', '_', '-' );
Gaal
@alphabet = ( 'a' .. 'z', 'A' .. 'Z', '0' .. '9', qw/!_-/ );
--
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/
More information about the Perl
mailing list