in reply to RE: RE: RE: clearer code
in thread clearer code
Although I think it should be 129 instead of 128, because it's not the index into the string, it's the length that you want to cut out... which is 129, right?
So it should actually be
Other possibilities using substr:substr $text, 0, 129, '';
orsubstr($text, 0, 129) = '';
The first uses substr as an lvalue, setting the first 129 characters to ''. Or eliminating them, in other words.$text = substr $text, 129;
The second is more "standard"; it sets $text to characters 129-the end of $text.
All have the same result.
|
|---|