Test::Parser::Sysctl.3pm

Langue: en

Version: 2008-02-27 (mandriva - 01/05/08)

Section: 3 (Bibliothèques de fonctions)

NAME

Test::Parser::Sysctl - Perl module to parse output from sysctl.

SYNOPSIS

  use Test::Parser::Sysctl;
 
  my $parser = new Test::Parser::Sysctl;
  $parser->parse($text);
 
 

DESCRIPTION

This module transforms sysctl output into a hash that can be used to generate XML.

FUNCTIONS

Also see Test::Parser for functions available from the base class.

new()

Creates a new Test::Parser::Sysctl instance. Also calls the Test::Parser base class' new() routine. Takes no arguments.

data()

Returns a hash representation of the sysctl data.

Override of Test::Parser's default parse_line() routine to make it able to parse sysctl output.

to_xml()

Returns sysctl data transformed into XML.

AUTHOR

Mark Wong <markwkm@gmail.com> Copyright (C) 2006-2008 Mark Wong & Open Source Development Labs, Inc. All Rights Reserved.

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

SEE ALSO

Test::Parser

POD ERRORS

Hey! The above document had some coding errors, which are explained below:
Around line 130:
'=end' without a target?