in reply to Tk - text widget - delete text

I got this info but I am not guru and cant do it. please help! :(

----
linestart

Adjust the index to refer to the first character on the line.
lineend

Adjust the index to refer to the last character on the line (the newline).

$text->delete(index1, ?index2?)

Delete a range of characters from the text. If both index1 and index2 are specified, then delete all the characters starting with the one given by index1 and stopping just before index2 (i.e. the character at index2 is not deleted). If index2 doesn't specify a position later in the text than index1 then no characters are deleted. If index2 isn't specified then the single character at index1 is deleted. It is not allowable to delete characters in a way that would leave the text without a newline as the last character. The command returns an empty string.
------

I write:
$text1->delete(linestart, lineend);

and get error:
bad text index "linestart" at C:/Perl/site/lib/Tk.pm line 217.

Help please :)