Do you know where your variables are? | |
PerlMonks |
Re: How do I truncate a string while preserving words?by cdarke (Prior) |
on May 11, 2007 at 10:23 UTC ( [id://614866]=note: print w/replies, xml ) | Need Help?? |
A different way of looking at this could be to use formats (see perlform), maybe through formline and $^A. A format of ^<<<<<<<< (etc) should split a line at the correct place, and that can be adjusted using $:
In Section
Seekers of Perl Wisdom
|
|