Just expand out that one line expression so that you're saving the value of the number of paragraphs (i.e. by putting it into an array before putting it into $_content_to_add). Or I suppose you could just try: my $number_of_paragraphs = scalar (split /(?:\r?\n)+/, $_content_to_add);.
In reply to Re: Re: Parsing and adding to a "variable".
by Vautrin
in thread Parsing and adding to a "variable".
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |