Parse::DebControlEasy OO parsing of debian control-like files | |
Download |
Parse::DebControl Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Jay Bonci
- Publisher web site:
- http://search.cpan.org/~jaybonci/
Parse::DebControl Tags
Parse::DebControl Description
Easy OO parsing of debian control-like files Parse::DebControl is an easy object-oriented way to parse Debian control files and other colon separated key-value pairs. It's specifically designed to handle the format used in Debian control files, template files, and the cache files used by dpkg.This module does not actually do any intelligence with the file content (because there are a lot of files in this format), but merely handles the format. It can handle simple control files, or files hundreds of lines long efficiently and easily.SYNOPSIS use Parse::DebControl $parser = new Parse::DebControl; $data = $parser->parse_mem($control_data, $options); $data = $parser->parse_file('./debian/control', $options); $data = $parser->parse_web($url, $options); $writer = new Parse::DebControl; $string = $writer->write_mem($singlestanza); $string = $writer->write_mem(); $writer->write_file($filename, $singlestanza, $options); $writer->write_file($filename, , $options); $writer->write_file($handle, $singlestanza, $options); $writer->write_file($handle, , $options); $parser->DEBUG(); Requirements: · Perl
Parse::DebControl Related Software