Beefy Boxes and Bandwidth Generously Provided by pair Networks BBQ
go ahead... be a heretic
 
PerlMonks  

acrosstick in perl

by valavanp (Curate)
on Aug 18, 2006 at 06:24 UTC ( [id://568097]=perlquestion: print w/replies, xml ) Need Help??

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.

Replies are listed 'Best First'.
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
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
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/;
Re: acrosstick in perl
by planetscape (Chancellor) on Aug 18, 2006 at 21:21 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://568097]
Approved by GrandFather
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.