in reply to JAPH - short sort
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;
|
|---|