Yes a form of encryption is the final result, this is just a step but the idea is to use a sentence determind by <> and push each word into an array. @numbers2 is in a random order because i want it to be, on my computer there are 26 random lists like @numbers2 to be used to switch out ID's. Because if someone knew the 6 digits where positions of a word in the language, they could just get their own list and count till they found the word. The purpose of the random @numbers2 is to switch the 6 digit keys that represent position with othe random 6 digit keys. So far i have been thinking about and am thinking of making a hash where keys are numbers (0..$#numbers2) and values are @numbers 2 so that when i give it position 0 (for the word "a" it will return a random number such as 300460 etc. Your right when i go back and optimize this i may well just make @words a %hash

In reply to Re^2: Using Positions from one array to find the value in the same position of another. by RuZombieSlayer
in thread Using Positions from one array to find the value in the same position of another. by RuZombieSlayer

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.