Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The match variables ($`, $&, and $') impose a speed penalty on your Perl programs because they cause Perl to perform some extra bookkeeping. After a successful match, they represent the part of the string that comes before the match, the part that matched, and the part that follows the match, respectively:
'My cat is Buster Bean' =~ m/Buster/; print <<"HERE"; Prematch: $` match: $& Postmatch: $' HERE