## # # Copyright 2004, AllAfrica Global Media # # This file is part of XML::Comma # # XML::Comma is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # For more information about XML::Comma, point a web browser at # http://xml-comma.org, or read the tutorial included # with the XML::Comma distribution at docs/guide.html # ## package XML::Comma::Pkg::DecoratorTest::OverTalker; sub say_hello { my $self = shift; my $super_say = $self->super::say_hello(); return substr($super_say,0,3) . '--HEY'; } sub set { my ( $self, $content, %args ) = @_; $content = substr($content,0,3) . '--HEY'; return $self->super::set ( $content, %args ); } 1;