not-a-monk has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: bold matching text
by toolic (Bishop) on Aug 30, 2011 at 19:42 UTC |