News for hackers. Stuff that matters.
Re:AWK-ward Ruby by riffraff on Tuesday April 26, 2011 @02:43PM (#2486588)
I dare to suggest using $;=/[^a-zA-Z]+/ in the BEGIN block, then you can get away with using only split.each on the second line, and it's more perl-awk-ish :)
Re:AWK-ward Ruby by dkubb on Tuesday April 26, 2011 @03:50PM (#2486876)
Even more perl-awk-ish would be to use the -F and -a switch and move the regexp onto the command line, eg: https://gist.github.com/942975