Rsync::Config::Parser

Rsync::Config::Parser is a simple Perl module for Rsync configuration parser.
Download

Rsync::Config::Parser Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Manuel SUBREDU
  • Publisher web site:
  • http://search.cpan.org/~diablo/Rsync-Config-0.3.1/lib/Rsync/Config/Parser.pm

Rsync::Config::Parser Tags


Rsync::Config::Parser Description

Rsync::Config::Parser is a simple Perl module for Rsync configuration parser. Rsync::Config::Parser is a simple Perl module for Rsync configuration parser.SYNOPSIS use Rsync::Config::Parser; use Rsync::Config; sub main { my $parser = new Rsync::Config::Parser(); my $conf = $parser->parse('/etc/rsyncd.conf'); }SUBROUTINES/METHODSnew()Class constructor. Accepts a hash with the following options:eat_trail_spaces (def. 0)Removes the trail spaces from all lines.parse($filename, $opt)Calls the parser. You can override the defaults options by giving a hash ref ($opt). Returns a Rsync::Config object.eat_trail_spaces my $eat_trails = $parser->eat_trail_spaces; $parser->eat_trail_spaces(1);Both accessor and mutator, eat_trail_spaces can be used to get the current value or to change it.If no arguments are provided, it will return the current eat_trail_spaces value.If arguments are provided, first is considered to be the new eat_trail_spaces value and applied to the current object, all others being ignored.As mutator, the current object will be returned (useful for method chaining).If invalid value is passed , a fatal error is threw. Valid values are non-negative integers (0 included).It can also be called as a class method, returning the default eat_trail_spaces value. In this case, no mutator mode is possible. Requirements: · Perl · Exception::Class · CLASS


Rsync::Config::Parser Related Software