13 |
require Message::Util; |
require Message::Util; |
14 |
require Message::Field::Structured; |
require Message::Field::Structured; |
15 |
push @ISA, qw(Message::Field::Structured); |
push @ISA, qw(Message::Field::Structured); |
16 |
use overload '.=' => sub { $_[0]->comment_add ($_[1]) }, |
use overload '.=' => sub { $_[0]->comment_add ($_[1]); $_[0] }, |
17 |
'0+' => sub { $_[0]->{value} || $_[0]->{option}->{value_default} }, |
'0+' => sub { $_[0]->{value} || $_[0]->{option}->{value_default} }, |
18 |
'+=' => sub { |
'+=' => sub { |
19 |
my $n = $_[0]->{value} + $_[1]; |
my $n = $_[0]->{value} + $_[1]; |