sub trim { for (my $s = $_[0]) { s/^\s+//; s/\s+$//; return $_; } } $string =~ s/##([^#]+)##/##$langhash{trim($1)}##/;
In reply to Re: substitution not working correctly
by ikegami
in thread substitution not working correctly
by qnguyen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |