CMS-Drupal-Modules-MembershipEntity
view release on metacpan or search on metacpan
lib/CMS/Drupal/Modules/MembershipEntity/Cookbook.pm view on Meta::CPAN
package CMS::Drupal::Modules::MembershipEntity::Cookbook;
$CMS::Drupal::Modules::MembershipEntity::Cookbook::VERSION = '0.96';
# ABSTRACT: Guide and tutorials for using the Perl-Drupal Membership Entity interface
use strict;
use warnings;
1; # return true
__END__
=pod
=encoding UTF-8
=head1 NAME
CMS::Drupal::Modules::MembershipEntity::Cookbook - Guide and tutorials for using the Perl-Drupal Membership Entity interface
=head1 VERSION
version 0.96
=head1 SYNOPSIS
This manual contains a collection of tutorials and tips for using
the CMS::Drupal::Modules::MembershipEntity distribution.
=head1 DESCRIPTION
The individual packages in the CMS::Drupal::Modules::MembershipEntity
distribution each have their own POD of course, but the author hopes
that this documentation will help a new user put it all together.
Maybe you are a non-programmer or a non-Perl user and you are here
because you use Drupal's MembershipEntity modules and you need the
additional tools this distribution provides.
=head2 Code examples
In the interests of brevity and readability I have omitted the standard
opening lines from the code samples below. If you are copy-pasting the
examples and trying them out on your system, you should prepend the
following to each snippet:
#!/usr/bin/perl -w
use strict;
use feature 'say';
The examples also skip the "use Foo::Bar"" lines, except for those
examples in each section that specifically describe how to "use"
them. You'll need to include those lines in your code too!
Note that these examples use the feature "say" which became available in
Perl v5.10 ... you can of course replace with "print" if you like: I
prefer "say" in examples (and in my code!) because you can omit the
newlines and their quotation marks.
=head1 INSTALLATION AND TESTING
Install the modules however you normally do. The easiest way is to get
them from CPAN:
$ cpan install CMS::Drupal
$ cpan install CMS::Drupal::Modules::MembershipEntity
If you want the modules to test themselves against your Drupal database
you will need to set the DRUPAL_TEST_CREDS environment variable as
described in the Testing section of the documentation for the parent
CMS::Drupal module. Essentially you will need to provide at least
the database name and driver, so your minimum testing config would be:
$ set DRUPAL_TEST_CREDS=database,foo,driver,Pg
or something similar.
If you come to this tutorial after you've installed the modules you
can still test by finding the CPAN build directory and just running
( run in 2.033 seconds using v1.01-cache-2.11-cpan-ceb78f64989 )