I want to filter out words at the end of a line but it's not working. Why doesn't the below code filter out the word hello at the end of the line?
$text=<<EOT; hello world EOT $text =~ s/hello$//g; print $text;
In reply to end of line anchor in regex by redss
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |