>>>>> "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!

Reply via email to