This is an archived low-energy page for bots and other anonmyous visitors.
Please sign up if you are a human and want to interact.
valavanp has asked for the wisdom of the Perl Monks concerning the following question:
I have 5 words like this
SATOR,
AREPO,
TELET,
OPERA,
ROTAS
I need the logic and the code of the above acrosstick.
Is it possible to do that in a single array. Thanks monks for your valuable suggestion. Please regret if any thing wrong.
Re: acrosstick in perl
by GrandFather (Saint) on Aug 18, 2006 at 06:35 UTC
|
What is it that you are trying to achieve and what code have you tried so far?
You should start to solve this problem by describing the process you would use to find a solution on paper then write the code to replicate that. If you have trouble at that point come back to us with some code and we will help some more.
DWIM is Perl's answer to Gödel
| [reply] |
Re: acrosstick in perl
by ysth (Canon) on Aug 18, 2006 at 14:34 UTC
|
It's not clear to me what you mean by "logic" or "code". What do you want?
You might start by replacing the letters with ABCDEFGHI (considering the R in AREPO/OPERA to be a different letter than the R in SATOR/ROTAS) to see the pattern better:
SATOR/ AREPO/
ROTAS OPERA TELET
SATOR ABCDE B D C
AREPO B D BFGHD G
TELET = C C + G G + CGIGC
OPERA D B DHGFB G
ROTAS EDCBA D B C
| [reply] [d/l] |
Re: acrosstick in perl
by blazar (Canon) on Aug 18, 2006 at 16:27 UTC
|
I have 5 words like this SATOR, AREPO, TELET, OPERA, ROTAS I need the logic and the code of the above acrosstick. Is it possible to do that in a single array. Thanks monks for your valuable suggestion. Please regret if any thing wrong.
s/L/N/;
| [reply] [d/l] |
Re: acrosstick in perl
by planetscape (Chancellor) on Aug 18, 2006 at 21:21 UTC
|
| [reply] |
|