Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: order matter

by oha (Friar)
on Sep 18, 2007 at 09:21 UTC ( [id://639593]=note: print w/replies, xml ) Need Help??


in reply to Re: order matter
in thread order matter

thanks!

the idea was to start from an empty string, then add the chars to the string to a given position. I iterate from A to Z and use the strange string on top. this string is splitted using the \W. so looking at the start: "14-(5+(248" that will be splitted in ("14", ,"5", ,"248"). so the control data for the A is "14", nothing for B, then "5" for C and so on. the "14" is splitted again and i used the value in hex (this is important, for the "b" code later on), so i'll get 1 and 4, and then the string is updated inserting A in 1 and 4. the ending string is as expected JAPH. to keep the code small i was not able to use anything more then hex data, but a "r" was too far (more then 0xf) so i had to start with it in the string, as for the spaces.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://639593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (2)
As of 2024-12-13 03:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which IDE have you been most impressed by?













    Results (67 votes). Check out past polls.