set up a generator:
my $id_generator = unique(sub { int rand 1000 });
get a random unique id from this generator:
$id_generator->();
To install CatalystX::Crudite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Crudite
CPAN shell
perl -MCPAN -e shell install CatalystX::Crudite
For more information on module installation, please visit the detailed CPAN module installation guide.