I was going to say that that looked wrong, but then I
looked at the docs online (my work has 5.004_04) and
found that that was valid. That's pretty nice. :)
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
substr $text, 0, 129, '';
Other possibilities using substr:
substr($text, 0, 129) = '';
or
$text = substr $text, 129;
The first uses substr as an lvalue, setting the first 129 characters
to ''. Or eliminating them, in other words.
The second is more "standard"; it sets $text to characters
129-the end of $text.
All have the same result. |