IRC::Toolkit::TS6 - Generate TS6 IDs
use IRC::Toolkit::TS6; my $idgen = ts6_id(); my $nextid = $idgen->next;
Lightweight array-type objects that can produce sequential TS6 IDs.
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).
ratbox
The object stringifies to the current ID.
The as_string method explicitly stringifies the current ID.
as_string
The next will increment the current ID and return the ID as a string.
next
If no more IDs are available, next will croak.
Jon Portnoy <avenj@cobaltirc.org>; conceptually derived from the relevant ratbox function.
To install IRC::Toolkit, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IRC::Toolkit
CPAN shell
perl -MCPAN -e shell install IRC::Toolkit
For more information on module installation, please visit the detailed CPAN module installation guide.