The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Code::CutNPaste::Duplicate::Item - Individual code snippet

SYNOPSIS

    my $item = Code::CutNPaste::Duplicate::Item->new(
        file => $filename,
        line => $line_number,
        code => $text_of_code,
    );

DESCRIPTION

This is merely a simple object to report on a chunk of code. For internal use only.

VERSION

0.31

METHODS

file

Returns the name of the file the code is contained in.

line

Returns the (approximate) line number the code starts at.

code

Returns the (approximate) code which is duplicated.