Config-GitLike

 view release on metacpan or  search on metacpan

lib/Config/GitLike.pm  view on Meta::CPAN

=back

=head2 parse_content

Parameters:

    content => 'str'
    callback => sub {}
    error => sub {}

Parses the given content and runs callbacks as it finds valid information.

Returns undef on success and C<error($content)> (the original content) on
failure.

C<callback> is called like:

    callback(section => $str, offset => $num, length => $num, name => $str, value => $str)

C<name> and C<value> may be omitted if the callback is not being called on a
key/value pair, or if it is being called on a key with no value.



( run in 0.534 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )