We use custom tags (%B% = start bold, /B/ = end bold and others) for reports that are printed on both the internet and a high speed printer. The data for these reports is pulled from several (more then 7) files and at each of these I found:
s/\%B\%/<b>/g; s/\/B\//<\/b>/g;
seems the writter didn't know about subs and \Q\E or quotemeta() ;)
"Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce
In reply to Re: Pearls (not really) of Perl programming
by kutsu
in thread Pearls (not really) of Perl programming
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |