Data-Section-Simple

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    This is by design -- in theory you can "tell" the DATA handle before
    reading it, but then reloading the data section of the file (handy for
    developing inline templates with PSGI web applications) would fail
    because the pos would be changed.

    If you don't like this design, again, use the superior Data::Section.

  utf8 pragma
    If you enable utf8 pragma in the caller's package (or the package you're
    inspecting with the OO interface), the data retrieved via
    "get_data_section" is decoded, but otherwise undecoded. There's no
    reliable way for this module to programmatically know whether utf8
    pragma is enabled or not: it's your responsibility to handle them
    correctly.

AUTHOR
    Tatsuhiko Miyagawa <miyagawa@bulknews.net>

COPYRIGHT
    Copyright 2010- Tatsuhiko Miyagawa

lib/Data/Section/Simple.pm  view on Meta::CPAN

developing inline templates with PSGI web applications) would fail
because the pos would be changed.

If you don't like this design, again, use the superior
L<Data::Section>.

=head2 utf8 pragma

If you enable L<utf8> pragma in the caller's package (or the package
you're inspecting with the OO interface), the data retrieved via
C<get_data_section> is decoded, but otherwise undecoded. There's no
reliable way for this module to programmatically know whether utf8
pragma is enabled or not: it's your responsibility to handle them
correctly.

=head1 AUTHOR

Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>

=head1 COPYRIGHT



( run in 0.725 second using v1.01-cache-2.11-cpan-26ccb49234f )