|
|
| go ahead... be a heretic | |
| PerlMonks |
Count number of lines in a STRINGby danj35 (Sexton) |
| on May 12, 2010 at 09:31 UTC ( #839575=perlquestion: print w/ replies, xml ) | Need Help?? |
|
danj35 has asked for the
wisdom of the Perl Monks concerning the following question:
Good day Monks, Quick question here, nice and easy. I know how easy it is to count the number of lines in a file, though I am looking to count the number of lines in a string. The string I have can range from having no lines to a theoretically infinite amount. I simply need to count the number of lines in it and return it as a variable (integer). Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||