17 private links
$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
- You upload through PAUSE, The Perl Authors Upload Server. This is a stepping stone to CPAN.
- Indexing.
-- PAUSE indexes and creates data files for the CPAN clients
-- Only the latest distributions get into it.
-- People have permissions for namespaces - Get a PAUSE Account
- Choose a [module name](https://pause.perl.org/pause/query? ACTION=pause_namingmodules)
- Permissions.
-- You can upload a namespace someone else already uses.
-- But PAUSE will ignore it.
-- A good name goes a long way. - Create the distro
-- There are modules that can help you
--- Module::Starter
--- Distribution::Cooker
--- h2xs (comes with Perl)
--- many others - 25,000 Examples
-- Look at other distributions to get examples
-- See how other people do it
-- Ask them questions - Github
- Upload
- Upload early & often
-- You don’t have to be perfect, or even good
-- Other people can help as soon as possible
-- CPAN Testers can send you feedback - CPAN Search
- Lots more
-- PAUSE lets you add co-maintainers
-- You can take over existing modules
-- You can help with other people’s modules - Publicize your module
-- Don’t be shy
-- Write something on blogs.perl.org
-- Tweet it, plus it, facebook it
-- Give a lightning talk - Getting help
-- For help with PAUSE issues, write tomodules@perl.org
-- One of the PAUSE volunteer admins can help you
-- For general module questions, you might trymodule-authors@perl.org
-- For CPAN Search issues, trycpansearch@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 :')