Just operate on the string directly.
(At least the technique described in perlfaq5 can be easily used that way).
In reply to Re: Count number of lines in a STRING
by moritz
in thread Count number of lines in a STRING
by danj35
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |