Acme::Iota - Iota Is Acme
use Acme::Iota; use constant { A => iota(ord('A')), B => iota, C => iota, };
Stable. No changes expected, but who knows?
Using Acme::Iota imports a per-package counter that increases its value on each call to iota.
iota
Providing an argument resets the counter to the specified value.
This is quite literally all there is to the module:
sub import { my $iota = 0; *{caller.'::iota'} = sub { (@_ ? $iota = shift : $iota)++ }; }
The Go Programming Language Specification
Copyright (C) 2014 by Christoph Gärtner <cygx@cpan.org>
Distributed under the Boost Software License, Version 1.0
To install Acme::Iota, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Acme::Iota
CPAN shell
perl -MCPAN -e shell install Acme::Iota
For more information on module installation, please visit the detailed CPAN module installation guide.