Please let me know any fnction to do this. I have started learning perl and any guidance would be useful.
Suppose I have a string as below;
Expand|Select|Wrap|Line Numbers
- my $string = 'Nowisthetimeforallgoodpeopletocometotheaidoftheirparty';
Expand|Select|Wrap|Line Numbers
- time
But I need a way to chop the original string and count the number of characters in that string.
In tha above example
Expand|Select|Wrap|Line Numbers
- Nowisthe
Expand|Select|Wrap|Line Numbers
- Nowisthe