$ perl -wle 'my $_ = "abc"; chop; print' ab $ [download]
In reply to Re^3: How can I avoid code repetition here by JavaFan in thread How can I avoid code repetition here by rovf