$randInt = Math::NumberCruncher::RandInt(10,50);
Returns a random integer between the two number passed to the function, inclusive. With no parameters passed, the function returns either 0 or 1.
This blog post describes a model that we found useful for talking about CPAN dependencies and reverse dependencies at the QA Hackathon. At the head of the river is Perl itself with the core modules. The river flows into the sea, which contains all distributions that aren't used by any other distribution. Other distributions sit somewhere along the river, their position determined by their reverse dependencies. This post introduces the core concepts, but nothing more.
Last Christmas, the inimitable Matt Trout (mst) created an opinionated tour of CPAN where he recommended modules for some common problems. I think its brilliant, useful, and entertaining and I’ve decided to compile a high level overview all on one page in order to create a quick reference.
I’ve tried to distill his wisdom and wit down to a few words. But I recommend clicking the section headers and following the links to Matt’s original posts to see his actual real opinions in their full complexity. This single page can’t replace 16 great posts and he usually includes advice on the best way to use the module. You won’t want to miss that.
use Inline::Perl5;
use DBI:from<Perl5>;
my $dbh = DBI.connect('dbi:Pg:database=test');
my $products = $dbh.selectall_arrayref(
'select * from products', {Slice => {}}
);
Module for executing Perl 5 code and accessing Perl 5 modules from Perl 6.
Supports Perl 5 modules including XS modules. Allows passing integers, strings, arrays, hashes, code references, file handles and objects between Perl 5 and Perl 6. Also supports calling methods on Perl 5 objects from Perl 6 and calling methods on Perl 6 objects from Perl 5 and subclass Perl 5 classes in Perl 6.
#Uploading Your First Module to CPAN brian d foy The Perl Review YAPC::EU 2011
modules@perl.org
module-authors@perl.org
cpansearch@perl.org
When you upgrade to a new major version of Perl, the XS modules have to be rebuilt :
$ cpanm --reinstall Broken::Module
When you upgrade to a new major version of Perl, the XS modules have to be rebuilt :
$ cpanm --reinstall Broken::Module
J'aimerai tant que ce soit aussi bien que le CPAN :')