in reply to Variable Removal From End of String
Say you want to remove the last 20 letter/spaces from a sentence
$sentence="Error Problem in read_vhdl No designs were read DBR 011"; $sentence =~ s/[\w\s]{20}$//; [download]
Diarmuid