>>>>> "Bart" == Bart Lateur <[EMAIL PROTECTED]> writes: Bart> So length is already picky on what it accepts. You need to turn it into Bart> print length(scalar(@a, 'this is a string')); Bart> to get perl to accept it. And then what it's accepting is the scalar-comma operator, giving you the length of "this is a string". Not 2. Not the length of "2". :) -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 <[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/> Perl/Unix/security consulting, Technical writing, Comedy, etc. etc. See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
- Re: RFC 212 (v1) Make length(@array) work Johan Vromans
- Re: RFC 212 (v1) Make length(@array) work Graham Barr
- Re: RFC 212 (v1) Make length(@array) work Damian Conway
- Re: RFC 212 (v1) Make length(@array) work Nathan Torkington
- Re: RFC 212 (v1) Make length(@array) work Damian Conway
- Re: RFC 212 (v1) Make length(@array) work Bart Lateur
- Re: RFC 212 (v1) Make length(@array) work Dave Storrs
- Re: RFC 212 (v1) Make length(@array) work Bart Lateur
- Re: RFC 212 (v1) Make length(@array) work Tom Christiansen
- Re: RFC 212 (v1) Make length(@array) w... Bart Lateur
- Re: RFC 212 (v1) Make length(@arr... Randal L. Schwartz
- Re: RFC 212 (v1) Make length(@array) work Dave Storrs