Rosetta Code:API/MediaWiki/Perl
Perl bindings for MediaWiki, as with all extensions to Perl, are provided as Perl modules, which are included using the use keyword, optionally followed by a list of symbols from the module that you might want to import into your local namespace.
<lang perl>use MediaWiki::API;</lang>
There are at least two Perl bindings for interacting with MediaWiki, MediaWiki::API and MediaWiki::Bot. MediaWiki::Bot provides bot-specific abstractions to MediaWiki::API. Both modules area available via CPAN.