#-*- perl -*- # # Copyright (C) 2001 Ken'ichi Fukamachi # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # # $Id$ # $FML$ # package Ticket::System; use strict; use vars qw(@ISA @EXPORT @EXPORT_OK); use Carp; require Exporter; @ISA = qw(Exporter); sub new { my ($self) = @_; my ($type) = ref($self) || $self; my $me = {}; return bless $me, $type; } sub increment_id { my ($self, $file) = @_; use FML::SequenceFile; my $sfh = new FML::SequenceFile { sequence_file => $seq_file }; my $id = $sfh->increment_id; $self->{ _error } = $sfh->error; $id; } sub error { my ($self) = @_; return $self->{ _error }; } =head1 NAME Ticket::System.pm - what is this =head1 SYNOPSIS =head1 DESCRIPTION =head2 new =item Function() =head1 AUTHOR =head1 COPYRIGHT Copyright (C) 2001 __YOUR_NAME__ All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =head1 HISTORY FML::__MODULE_NAME__.pm appeared in fml5. =cut 1;