Say you want to remove the last 20 letter/spaces from a sentence
should be what you need.$sentence="Error Problem in read_vhdl No designs were read DBR 011"; $sentence =~ s/[\w\s]{20}$//;
Diarmuid
In reply to Re: Variable Removal From End of String
by diarmuid
in thread Variable Removal From End of String
by cdherold
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |