Bart Lateur writes: > Indeed. What about lists? > > print length(qw(a b c)); > > Should this return 3? It prints what this would print: $x = qw(a b c); print length $x; The parser will check the first character of length's argument. If it's an @ sign, then it calculates the length of the array that is the argument (and there should be only one argument--no commas). Nat
- RFC 212 (v1) Make length(@array) work Perl6 RFC Librarian
- Re: RFC 212 (v1) Make length(@array) work Hildo Biersma
- Re: RFC 212 (v1) Make length(@array) work Bart Lateur
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Dave Storrs
- Re: RFC 212 (v1) Make length(@array) work Casey R. Tweten
- Re: RFC 212 (v1) Make length(@array) work Randal L. Schwartz
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Casey R. Tweten
- Re: RFC 212 (v1) Make length(@array) ... Nathan Torkington
- Re: RFC 212 (v1) Make length(@ar... Nathan Wiger
- Re: RFC 212 (v1) Make length... Nathan Torkington
- Re: RFC 212 (v1) Make le... Tom Christiansen