Jon Portnoy > IRC-Toolkit-0.087000 > IRC::Toolkit::TS6

Download:
IRC-Toolkit-0.087000.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.087000   Source   Latest Release: IRC-Toolkit-0.088002

NAME ^

IRC::Toolkit::TS6 - Generate TS6 IDs

SYNOPSIS ^

  use IRC::Toolkit::TS6;

  my $idgen = ts6_id();
  my $nextid = $idgen->next;

DESCRIPTION ^

Lightweight array-type objects that can produce sequential TS6 IDs.

ts6_id

The exported ts6_id function will instance a new ID object. ts6_id optionally takes a start-point as a string (defaults to 'AAAAAA' similar to ratbox).

The object stringifies to the current ID.

as_string

The as_string method explicitly stringifies the current ID.

next

The next will increment the current ID and return the ID as a string.

If no more IDs are available, next will croak.

AUTHOR ^

Jon Portnoy <avenj@cobaltirc.org>; conceptually derived from the relevant ratbox function.

syntax highlighting: