The following command work fine on Solaris ( delete line only if last character is ":" )
sed -e '/:$/d' < foo > foo.new
how to do the same in perl ? ( the reason for that because I not want to create a new file )
perl -i -pe 's/:$/d' foo Substitution replacement not terminated at -e line 1.