1 |
|
|
2 |
=head1 NAME |
=head1 NAME |
3 |
|
|
4 |
Bunshin |
Bunshin --- A shimbun implemrntion written in Perl |
5 |
|
|
6 |
=cut |
=cut |
7 |
|
|
11 |
$VERSION=do{my @r=(q$Revision$=~/\d+/g);sprintf "%d."."%02d" x $#r,@r}; |
$VERSION=do{my @r=(q$Revision$=~/\d+/g);sprintf "%d."."%02d" x $#r,@r}; |
12 |
$MYNAME = 'Bunshin'; |
$MYNAME = 'Bunshin'; |
13 |
$DEBUG = 0; |
$DEBUG = 0; |
|
use Time::Local; |
|
14 |
use FileHandle; |
use FileHandle; |
15 |
require Message::Entity; |
require Message::Entity; |
16 |
require Message::Util; |
require Message::Util; |
88 |
my $c = $self->{hook_code_conversion} || \&_code_conversion; |
my $c = $self->{hook_code_conversion} || \&_code_conversion; |
89 |
local $/ = undef; |
local $/ = undef; |
90 |
$self->{source} = &$c ($self, $f->getline, \%option); |
$self->{source} = &$c ($self, $f->getline, \%option); |
|
close SRC; |
|
91 |
} else { |
} else { |
92 |
Carp::croak "set_source: $_[0]: Unsupported data source type"; |
Carp::croak "set_source: $_[0]: Unsupported data source type"; |
93 |
} |
} |
174 |
$name =~ tr/_/-/; |
$name =~ tr/_/-/; |
175 |
if ($p{base_uri} && /uri/ && length $p{$_}) { |
if ($p{base_uri} && /uri/ && length $p{$_}) { |
176 |
require URI::WithBase; |
require URI::WithBase; |
177 |
$a->add ($name => URI::WithBase->new ($_, $p{base_uri})->abs); |
$a->add ($name => URI::WithBase->new ($p{$_}, $p{base_uri})->abs); |
178 |
} else { |
} else { |
179 |
$a->add ($name => $p{$_}) if length $p{$_}; |
$a->add ($name => $p{$_}) if length $p{$_}; |
180 |
} |
} |