The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

# Perlbug bug record handler
# (C) 1999 Richard Foley RFI perlbug@rfi.net
# $Id: Patch.pm,v 1.17 2002/01/11 13:51:05 richardf Exp $
#
=head1 NAME
Perlbug::Object::Patch - Patch class
=cut
use strict;
use vars qw($VERSION @ISA);
$VERSION = do { my @r = (q$Revision: 1.17 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r };
$|=1;
=head1 DESCRIPTION
Perlbug patch class.
For inherited methods, see L<Perlbug::Object>
=cut
@ISA = qw(Perlbug::Object);
=head1 SYNOPSIS
use Perlbug::Object::Patch;
my $o_patch = Perlbug::Object::Patch->new($o_perlbug);
print $o_patch->read('19990127.003')->format('a');
=head1 METHODS
=over 4
=item new
Create new Patch object:
my $o_patch = Perlbug::Object::Patch->new();
=cut
sub new {
my $proto = shift;
my $class = ref($proto) || $proto;
my $o_base = (ref($_[0])) ? shift : Perlbug::Base->new;
my $self = Perlbug::Object->new( $o_base,
'name' => 'Patch',
'from' => [qw(bug)],
'to' => [qw(change version)],
);
bless($self, $class);
}
=pod
=back
=head1 AUTHOR
Richard Foley perlbug@rfi.net 2000
=cut
#
1;