Andrew_Levenson has asked for the wisdom of the Perl Monks concerning the following question:
Thanks in advance.use strict; use warnings; my $i; chomp(my $message=<>); $message=join(" ",(split(//, $message))); my $j=0; for $i([A-Z]){ $message=~s/$i/($j+6)/i; $j++; } my $g=6; for $i([A-Z]){ $message=~s/$g/$i/i; $g++; } print $message;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Alpha-search, by letter.
by japhy (Canon) on Mar 14, 2006 at 22:27 UTC | |
|
Re: Alpha-search, by letter.
by rafl (Friar) on Mar 14, 2006 at 21:20 UTC | |
by Andrew_Levenson (Hermit) on Mar 14, 2006 at 21:25 UTC | |
by rafl (Friar) on Mar 14, 2006 at 21:34 UTC | |
by blogical (Pilgrim) on Mar 14, 2006 at 21:50 UTC | |
by QM (Parson) on Mar 14, 2006 at 21:50 UTC | |
|
Re: Alpha-search, by letter.
by ikegami (Patriarch) on Mar 14, 2006 at 22:23 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |