The 15 year old, freshman programmer,
Stephen Rawls
Right now I've taken out the and print part. The way this string is set up is that he attaches a letter to each letter in the 'just another perl hacker.' He sets it up somewhat like this: "bu aj cs ...". He sorts on the first letter, which is in alphabetical order; now $_ looks something like this:$_="uccsm jhvkqldtr oee hofaxrtaajshkebuwelrnpitgnpry!"; $_= join$\,sort/(..)/g;
aj bu cs
here he matches each of the two letter pair, but only prints the seconde letter, thus printing his japh.and print ucfirst join$/,/.(.)/g;
In reply to Re: JAPH - short sort
by srawls
in thread JAPH - short sort
by tachyon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |