Biblio-EndnoteStyle

 view release on metacpan or  search on metacpan

lib/Biblio/EndnoteStyle.pm  view on Meta::CPAN

    my($text, $debug) = @_;

    my @sequences;
    while ($text ne "") {
	if ($text =~ s/^(\s*[^\s|]*\s?)//) {
	    my $sequence = $1;
	    my $obj = Biblio::EndnoteStyle::Sequence->new($sequence);
	    push @sequences, $obj;
	    $text =~ s/^\|//;
	} else {
	    die "unparseable template fragment '$text'";
	}
    }

    my $this = bless {
	text => $text,
	sequences => \@sequences,
    }, $class;
    print STDERR $this->render() if $debug;

    return $this;



( run in 1.501 second using v1.01-cache-2.11-cpan-364913b4093 )