|
|
|
|
|
by cygx
2954 days ago
|
|
Depends on what you're looking for: In many ways, p6 is the superior language. But as an AWK competitor specifically, p5 might be the better choice for performance reasons alone (while p6 has been improving, as far as regex performance goes, it just isn't there yet [1]). You might even be able to write tighter code in p5 (for one, p6 regexes return objects, not strings, so in cases where you actually want the latter, you'll have to throw in boilerplate). [1] https://gist.github.com/cygx/9c94eefdf6300f726bc698655555d73... |
|