in reply to Variable Removal From End of String

I'm not sure I understand what you mean about variables so heres' what I understand by your question.

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}$//;
should be what you need.

Diarmuid