Try APL or Icon. They're terribly unpopular, but APL can't be beat for one-liners while Icon is substantially better at text processing than perl. Plus, both are still considered academically interesting, and both have open source ANSI C implementations that will build on any platform.