Email-Simple
view release on metacpan or search on metacpan
lib/Email/Simple/Header.pm view on Meta::CPAN
#pod my $nth_value = $header->header_raw($field, $index);
#pod my @all_values = $header->header_raw($field);
#pod
#pod This method returns the value or values of the given header field. If the
#pod named field does not appear in the header, this method returns false.
#pod
#pod =method header
#pod
#pod This method just calls C<header_raw>. It's the older name for C<header_raw>,
#pod but it can be a problem because L<Email::MIME>, a subclass of Email::Simple,
#pod makes C<header> return the header's decoded value.
#pod
#pod =cut
sub _str_value { return ref $_[0] ? $_[0][0] : $_[0] }
sub header_raw {
my ($self, $field, $index) = @_;
my $headers = $self->{headers};
my $lc_field = lc $field;
lib/Email/Simple/Header.pm view on Meta::CPAN
my $nth_value = $header->header_raw($field, $index);
my @all_values = $header->header_raw($field);
This method returns the value or values of the given header field. If the
named field does not appear in the header, this method returns false.
=head2 header
This method just calls C<header_raw>. It's the older name for C<header_raw>,
but it can be a problem because L<Email::MIME>, a subclass of Email::Simple,
makes C<header> return the header's decoded value.
=head2 header_raw_set
$header->header_raw_set($field => @values);
This method updates the value of the given header. Existing headers have their
values set in place. Additional headers are added at the end. If no values
are given to set, the header will be removed from to the message entirely.
=head2 header_set
( run in 0.446 second using v1.01-cache-2.11-cpan-0d8aa00de5b )