Difference between revisions of "Creating a Perl Module"

From Organic Design wiki
m (See also)
(See also)
Line 27: Line 27:
  
 
==See also==
 
==See also==
;[[G:creating+a+perl+module]]
+
;[[G:Creating+a+perl+module|Creating a perl package]]
 +
 
 +
; Perldoc
 +
*[http://perldoc.perl.org/perlmod.html Perlmod]
 +
*[http://www.perl.com/lpt/a/995 Making Perl Reusable with Modules - users Module::starter]
 +
*[http://perldoc.perl.org/perlmod.html perlmod documentation]
 +
 
 
*[http://mathforum.org/~ken/perl_modules.html Creating (and Maintaining) Perl Modules]
 
*[http://mathforum.org/~ken/perl_modules.html Creating (and Maintaining) Perl Modules]
 
*[http://articles.techrepublic.com.com/5100-10878_11-1044686.html Creating your first Perl module]
 
*[http://articles.techrepublic.com.com/5100-10878_11-1044686.html Creating your first Perl module]
 
*[http://world.std.com/~swmcd/steven/perl/module_mechanics.html Perl Module Mechanics]
 
*[http://world.std.com/~swmcd/steven/perl/module_mechanics.html Perl Module Mechanics]
 
*[http://www.perlmonks.org/index.pl?node_id=431702 José's Guide for creating Perl modules]
 
*[http://www.perlmonks.org/index.pl?node_id=431702 José's Guide for creating Perl modules]
*[http://www.perl.com/lpt/a/995 Making Perl Reusable with Modules - users Module::starter]
 
*[http://perldoc.perl.org/perlmod.html perlmod documentation]
 

Revision as of 10:23, 15 July 2008

Procedure.svg Creating a Perl Module
Organic Design procedure

We need to make a general package first which:

  • Collects a bunch of functions we use into one includable module
  • Makes the module installable as one of potentially many modules within OrganicDesign::
  • Adds the installation of it into the our Debian packages

Example

<perl> use OD::Wiki; $odwiki = OD::Wiki->new( url => 'http://www.organicdesign.co.nz', user => 'foo', pass => 'bar' );

$odwiki->edit( title => 'MyArticle', content => 'foo', summary => 'testing', minor => 1 ); </perl>

See also

Creating a perl package
Perldoc