[plug] Re: Perl query: Counting letters in a string.
David Buddrige
buddrige at wasp.net.au
Thu Feb 20 16:48:39 WST 2003
thanks! 8-)
David.
Matt Kemner writes:
> On Thu, 20 Feb 2003, quoth David Buddrige:
>
>> Can someone let me know how to determine how many characters are in
>> $line_of_code?
>
> From the perlfunc manpage:
>
> length EXPR
> length Returns the length in characters of the value of
> EXPR. If EXPR is omitted, returns length of $_.
> Note that this cannot be used on an entire array
> or hash to find out how many elements these have.
> For that, use "scalar @array" and "scalar keys
> %hash" respectively.
>
>
> Regards,
>
> - Matt
>
More information about the plug
mailing list