Bundle-PBib
view release on metacpan or search on metacpan
lib/PBib/PBib.pm view on Meta::CPAN
=item Config::General
by Thomas Linden <tom@daemon.de>
=item Archive::Zip and XML::Parser
for OpenOffice support.
=back
=cut
package PBib::PBib;
use 5.006;
use strict;
use warnings;
#use English;
use Time::HiRes qw(gettimeofday tv_interval);
BEGIN {
use vars qw($Revision $VERSION);
# SVN for generating version numbers is somehow strange ...
# maybe there's a better way?
my $major = 2; q$Revision: 24 $ =~ /: (\d+)/; my $minor = $1 - 10; $VERSION = "$major." . ($minor<10 ? '0' : '') . $minor;
}
# superclass
#use base qw(YYYY);
# used modules
#use FileHandle;
#use File::Basename;
use Data::Dumper;
# used own modules
use Biblio::BP;
use PBib::Config;
use PBib::Document;
use PBib::ReferenceConverter;
use PBib::ReferenceStyle;
use PBib::BibliographyStyle;
use PBib::BibItemStyle;
use PBib::LabelStyle;
# register extra reference converters
# the reference converters can extend the document classes
# to specify a different converter.
##### use PBib::ReferenceConverter::MSWord; # to be able to convert word documents
##### PBib::ReferenceConverter::MSWord is not yet working ...
# binmode(STDOUT, ":locale");
# binmode(STDERR, ":locale");
=head1 METHODS
These methods are exported.
=over
=cut
#
#
# constructor
#
#
=item $conf = new PBib::PBib(I<options>)
Supported Options:
=over
=item refs
=item config
=item inDoc
=item outDoc
=back
=cut
sub new {
my $self = shift;
my $class = ref($self) || $self;
my %args = @_;
# foreach my $arg qw/XXX/ {
# print STDERR "argument $arg missing in call to new $class\n"
# unless exists $args{$arg};
# }
$self = \%args;
return bless $self, $class;
}
#
#
# access methods
#
#
sub refs { return shift->{'refs'} || {}; }
sub inDoc { return shift->{'inDoc'}; }
sub outDoc { return shift->{'outDoc'}; }
( run in 1.745 second using v1.01-cache-2.11-cpan-ceb78f64989 )