The two occurrences of bob in $sentence should be bold. I get my values of $word and $sentence dynamically so no hard-coding.#example; not an attempt at a solution my $word == 'bob'; my $sentence == 'bob said hi to bob'; print "$sentence\n";
In reply to bold matching text by not-a-monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |