I wondered if this was an errata or a typo and I thought it might be worth noting that you can find the errata for all O'Reilly books on their web site,
here for the Llama book and this example is in the
sample chapter.
-w and use strict will pick up most of those typos for you :)
--
my $chainsaw = 'Perl';