#! perl use strict; use warnings; my $new_msg = 'I have apples,

pineapples, and pieces of fruit. Yes, I do have apples!'; my $count = 7; my $pcnt = 5; my $total = $count + $pcnt; print "\nBefore applying the substitutions, \$new_msg is:\n$new_msg\n"; $new_msg =~ s//$count/g; $new_msg =~ s/

/$pcnt/g; $new_msg =~ s//$total/g; print "\nAfter applying the substitutions, \$new_msg is now:\n$new_msg\n"; #### 18:30 >perl 820_SoPW.pl Before applying the substitutions, $new_msg is: I have apples,

pineapples, and pieces of fruit. Yes, I do have apples! After applying the substitutions, $new_msg is now: I have 7 apples, 5 pineapples, and 12 pieces of fruit. Yes, I do have 7 apples! 18:30 >