Paludis::UseCleaner - Remove cruft from your use.conf
version 0.01000307
This module handles the core behaviour of the Use Cleaner, to be consumed inside other applications.
For a "Just Use it" interface, you want paludis-usecleaner.pl and Paludis::UseCleaner::App
my $cleaner = Paludis::UseCleaner->new( input => somefd, output => somefd, rejects => somefd, debug => fd_for_debugging dot_trace => fd_for_dot_traces, ( # Optional display_ui => $object_to_handle_debug_messages display_ui_class => $classname_to_construct_a_display_ui display_ui_generator => $coderef_to_generate_object_for_display_ui ) ); $cleaner->do_work();
$cleaner->do_work();
Executes the various transformations and produces the cleaned output from the input.
$cleaner->input( \*STDIN ); $cleaner->input( $read_fh );
$cleaner->output( \*STDOUT ); $cleaner->output( $write_fh );
$cleaner->rejects( \*STDOUT ); $cleaner->rejects( $write_fh );
$cleaner->debug( \*STDERR ); $cleaner->debug( $write_fh );
$cleaner->dot_trace( \*STDERR ); $cleaner->dot_trace( $write_fh );
$cleaner->display_ui( $object );
$cleaner->display_ui_class( 'Some::Class::Name' );
$cleaner->display_ui_generator( sub { my $self = shift; .... return $object; });
my @line = __tokenize( $line );
STRIPPED: This method is made invisible to outside code after compile.
if( __is_empty_line(@line) ){ }
if( __is_star_rule(@line) ){ }
my ( $spec, $use, $extras ) = __tokenparse( @line );
my ( @flags ) = __extract_flags( \@tokens );
my ( $label ) = __extract_label( \@tokens );
my $class = $cleaner->_build_display_ui_class();
my $generator $cleaner->_build_display_ui_generator();
my $object = $cleaner->_build_display_ui();
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2010 by Kent Fredric <kentnl@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Paludis::UseCleaner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paludis::UseCleaner
CPAN shell
perl -MCPAN -e shell install Paludis::UseCleaner
For more information on module installation, please visit the detailed CPAN module installation guide.