more useful options | |
PerlMonks |
Re: Text matchby lima1 (Curate) |
on Oct 14, 2009 at 15:18 UTC ( [id://801110]=note: print w/replies, xml ) | Need Help?? |
See for example How do I retrieve the position of the first occurrence of a match? to get the position of the match. Then you could just use substr.
Update: didn't read your question carefully, thought you were talking about characters, not lines.
In Section
Seekers of Perl Wisdom
|
|