Parse-DebControl
view release on metacpan or search on metacpan
lib/Parse/DebControl.pm view on Meta::CPAN
gzip - Compress the data with gzip before writing
Since you determine the mode of your filehandle, passing it along with an
options hashref obviously won't do anything; rather, it is ignored.
The I<addNewline> option solves a situation where if you are writing
stanzas to a file in a loop (such as logging with this module), then
the data will be streamed together, and won't parse back in correctly.
It is possible that this is the behavior that you want (if you wanted to write
one key at a time), so it is optional.
This function returns the number of bytes written to the file, undef
otherwise.
=back
=over 4
=item * C<write_mem($data)>
=item * C<write_mem([$data1,$data2,$data3])>;
This function works similarly to the C<write_file> method, except it returns
the control structure as a scalar, instead of writing it to a file. There
is no I<%options> for this file (yet);
=back
=over 4
=item * C<DEBUG()>
Turns on debugging. Calling it with no paramater or a true parameter turns
on verbose C<warn()>ings. Calling it with a false parameter turns it off.
It is useful for nailing down any format or internal problems.
=back
=head1 CHANGES
B<Version 2.005> - January 13th, 2004
=over 4
=item * More generic test suite fix for earlier versions of Test::More
=item * Updated copyright statement
=back
B<Version 2.004> - January 12th, 2004
=over 4
=item * More documentation formatting and typo fixes
=item * CHANGES file now generated automatically
=item * Fixes for potential test suite failure in Pod::Coverage run
=item * Adds the "addNewline" option to write_file to solve the streaming stanza problem.
=item * Adds tests for the addNewline option
=back
B<Version 2.003> - January 6th, 2004
=over 4
=item * Added optional Test::Pod test
=item * Skips potential Win32 test failure in the module where it wants to write to /tmp.
=item * Added optional Pod::Coverage test
=back
B<Version 2.002> - October 7th, 2003
=over 4
=item * No code changes. Fixes to test suite
=back
B<Version 2.001> - September 11th, 2003
=over 4
=item * Cleaned up more POD errors
=item * Added tests for file writing
=item * Fixed bug where write_file ignored the gzip parameter
=back
B<Version 2.0> - September 5th, 2003
=over 4
=item * Version increase.
=item * Added gzip support (with the tryGzip option), so that compresses control files can be parsed on the fly
=item * Added gzip support for writing of control files
=item * Added parse_web to snag files right off the web. Useful for things such as apt's Sources.gz and Packages.gz
=back
B<Version 1.10b> - September 2nd, 2003
=over 4
=item * Documentation fix for ## vs # in stripComments
=back
B<Version 1.10> - September 2nd, 2003
( run in 3.878 seconds using v1.01-cache-2.11-cpan-140bd7fdf52 )