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

Text::Same::Range

DESCRIPTION

A class representing a range of integers

SYNOPSIS

my $range = new Text::Same::Range($start, $end);

METHODS

See below. Methods private to this module are prefixed by an underscore.

new

Title   : new
Usage   : $range = new Text::Same::Range($start, $end)
Function: Creates a new Range object with the given start and end
Returns : A Text::Same::Range object

start

Title   : start
Usage   : $start = $range->start
Function: Returns the start position that was passed to new()

end

Title   : end
Usage   : $end = $range->end
Function: Returns the end position that was passed to new()

as_string

Title   : as_string
Usage   : my $str = $range->as_string
Function: return a string representation of this Range
Args    : none

AUTHOR

Kim Rutherford <kmr+same@xenu.org.uk>

COPYRIGHT & LICENSE

Copyright 2005,2006 Kim Rutherford. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

DISCLAIMER

This module is provided "as is" without warranty of any kind. It may redistributed under the same conditions as Perl itself.