I have a string as, $string="Referring Hospital Triage Time <183> 2 h (N <26> 191)"; $pre_str=Referring Hospital;
I want to remove $pre_str from $string. I am writing the following code
$str1=$string; $str1=~s/\Q$pre_str\E//;
When i print $str1 I get output as "Referring Hospital Triage Time <183> 2 h (N <26> 191)"
Why is this happening? Please help!!
Thank you..In reply to Help with substitution by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |