Difference between revisions of "Creating a Perl Module"
From Organic Design wiki
m |
m |
||
Line 8: | Line 8: | ||
*Makes the module installable as one of potentially many modules within ''OrganicDesign::'' | *Makes the module installable as one of potentially many modules within ''OrganicDesign::'' | ||
*Adds the installation of it into the our Debian [[packages]] | *Adds the installation of it into the our Debian [[packages]] | ||
− | |||
== Example == | == Example == |
Revision as of 21:45, 11 July 2008
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>