I have included the modified code for the zap2xml.pl script: #original appendAsterisk subroutine #sub appendAsterisk { # my ($title, $station, $s) = @_; # if (defined($options{A})) { # if (($options{A} =~ "new" && defined($schedule{$station}{$s}{new})) # || ($options{A} =~ "live" && defined($schedule{$station}{$s}{live}))) { # $title .= " *"; # } # } # return $title; #} #modified code below sub appendAsterisk { #have to make the change to description rather than the title since I want to modify the description instead my ($description, $station, $s) = @_; if (defined($options{A})) { if (($options{A} =~ "new" && defined($schedule{$station}{$s}{new})) || ($options{A} =~ "live" && defined($schedule{$station}{$s}{live}))) { if (defined($schedule{$station}{$s}{new})){ #here I needed to make it add new to the title since it's a new episode $description .= " new"; } elsif (defined($schedule{$station}{$s}{live})){ $description .= " live"; #here I added live } } } return $description; } #original title and description portion # if (defined($programs{$p}{title})) { # my $title = &enc($programs{$p}{title}); # $title = &appendAsterisk($title, $station, $s); # print $FH "\t\t