I'm trying to learn a bit of Perl 6/Pugs by writing some code to solve the types of problems I routinely use Perl 5 for. Every now and then I run into a situation where it seems to me that Perl 6 tries to make a simple thing impossible.
This is one of those situations. What is the simplest way to get the length of a string? Google doesn't seem to know a simple way and I haven't stumbled across one while playing around in Pugs.
I've thought of some rather creative ways to do it, but it's hard to believe that length isn't included in the language.
Any insight is appreciated.
In reply to Length of a string in Perl6 by websterling
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |