View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Kent Fredric > Cave-Wrapper > Cave::Wrapper



Annotate this POD


View/Report Bugs
Module Version: 1.000001   Source  


Cave::Wrapper - A Wrapper to the Paludis 'cave' Client.


version 1.000001


cave is a package management client for the Paludis package manager available for use with both the Exherbo Linux and Gentoo Linux Distributions.

This module is designed as a syntactic sugar wrapper for that client to minimize development time and clarify code.

    my $cave = Cave::Wrapper->new();
    my @ids = $cave->print_ids(qw( --matches  dev-lang/perl ));


Methods are generated entirely at run-time by introspecting the output from cave print-commands --all and then generating the appropriate methods. This is mostly because we don't want to have to cut a new release every time paludis produce a new release just to avoid breaking code.


Naming Collisions

There exists 1 command we cannot perform a native mapping for, and its due to a perlism, and that is import.

For now, this is named cave_import instead.

Hyphenated Commands

Hyphenated commands can't be used as method names in Perl, so we've translated the hyphens to underscores in the method names.

i.e.: if you wanted print-ids you now want print_ids

Slightly Under-powered

This is a first-pass "Just get it working" implementation at this time, and is reasonably useful for the print_ family of commands the cave client provides. However, you probably do not wish to use it for more complex things like calling cave resolve as it might cause you untold sorrows while it silently buffers into a growing array and then spews its contents when its finished.


One day we'd like to have a sweeter syntax, like

    $cave->print_ids({ matches => 'dev-lang/perl' })


    $cave->print_ids({ matches => [ 'dev-lang/perl' , 'dev-lang/python' ]});

However, there are a few problems and questions to be answered, which are not a problem with the existing syntax but would be a problem with a possible alternative syntax.


Kent Fredric <>


This software is copyright (c) 2017 by Kent Fredric <>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: