perl -wle '$_ = '10'; s/(.(.*))/$2or$1/e; print' 10 [download]
In reply to Re^2: cut of first char of a string by Anonymous Monk in thread cut of first char of a string by holli