in reply to Re^2: Estimating height of TEXTAREA from content
in thread Estimating height of TEXTAREA from content
Given an 80-character soft-wrapping of a multi-paragraph scalar of English words in a monospace font ($content), what will the height of it be in characters ($rows)?
Wrap it yourself and count the lines:
use Text::Wrap; my $rows = split("\n", fill('','', $content););
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Estimating height of TEXTAREA from content
by Your Mother (Archbishop) on Jul 25, 2005 at 06:39 UTC | |
Re^4: Estimating height of TEXTAREA from content
by tomazos (Deacon) on Jul 25, 2005 at 15:58 UTC |
In Section
Seekers of Perl Wisdom