Определенно не самое маленькое, но я все еще хотел добавить запись:
sub p{return @_==reverse split//;}
ржавый tho Моего perl и это не тестируются.
Eclipse has a really cool concept call Scrapbook Pages where you can evaluate statements even when you're not debugging. However, if you want to eval code using values from the current program, go to Window->Show View->Expressions. There you can put in any expression you want and track it as your program executes.
Да. Имя представления - «Дисплей».
Окно-> Показать вид-> Другое. Он находится в папке Debug.
Попав туда, вы оцениваете операторы в отладчике.