Thursday, March 18, 2010

Проверка палиндрома на Perl

Делается так:
perl -ne 'print if /^(\w+).?(??{reverse $1})$/i'

No comments:

Post a Comment