[ic] how to get number of characters in a string?

Kevin Walsh interchange-users@icdevgroup.org
Sun Sep 8 17:42:02 2002


> 
> I was attempting to find a way to
> determine the number of characters that
> are in a string.
> 
Do you mean the Perl length() function?

    my $str = 'How long is a piece of string?';
    my $len = length($str);

$len would then be 30, which finally provides an answer to this
age-old question. :-)

You could make a UserTag or Filter out of that sort of thing, or
just use it directly in a [calc].

>
> I am making a templete and was passing
> a variable to title-bar and wanted to
> not use the width that came from the
> table push. I want to add 10 more
> points to the width (or however many
> I choose).
> 
> (etc.)
>
This is where I start to lose the plot.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/