The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

CMS::MediaWiki - Perl extension for creating and updating MediaWiki pages

SYNOPSIS

  use CMS::MediaWiki;

  my $mw = CMS::MediaWiki->new(
        host  => 'localhost',
        path  => 'wiki' ,     # --E<gt> Can be empty
        debug => 0            # --E<gt> 0 (no debug msgs), 1 or 2 (more msgs)
  );

DESCRIPTION

Login example

        $rc = $mw->login( user => 'Reto' , pass => 'yourpass' );

Another login example

        $rc = $mw->login(
                host => 'localhost' ,  # optional here, but wins if (re-)set here
                path => 'wiki',        # optional here, but wins
                user => 'Reto' ,
                pass => 'yourpass' ,
        );

Edit a Wiki page

        $rc = $mw->editPage(
                title   => 'Online_Directory:Computers:Software:Internet:Authoring' ,

                section => '' , #  2 means edit second section etc.
                                # '' = no section means edit the full page

                text    => "== foo ==\nbar foo\n\n",

                summary => "Your summary." ,
        );

In general, $rc returns 0 on success unequal 0 on failure.

EXPORT

None by default.

SEE ALSO

http://www.infocopter.com/perl/modules/

http://www.infocopter.com/know-how/mediawiki-reference/Perl-CMS-MediaWiki.html

AUTHOR

Reto Schär, <retoh@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Reto Schär

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

http://www.infocopter.com/perl/licencing.html

1 POD Error

The following errors were encountered while parsing the POD:

Around line 265:

Non-ASCII character seen before =encoding in 'Schär,'. Assuming UTF-8