Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Noted utf8 pragma

  • Loading branch information...
commit b0894fce3012f1a0c3fcc0177b65b47e02e07b46 1 parent b4e5adb
@miyagawa authored
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Data/Section/
11 lib/Data/Section/
@@ -94,6 +94,8 @@ caller code.
=head1 BUGS
+=head2 __DATA__ appearing elsewhere
If you data section has literal C<__DATA__> in the data section, this
module might be tricked by that. Although since its pattern match is
greedy, C<__DATA__> appearing I<before> the actual data section
@@ -107,6 +109,15 @@ because the pos would be changed.
If you don't like this design, again, use the superior
+=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 programatically know whether utf8
+pragma is enabled or not: it's your responsibility to handle them
=head1 AUTHOR
Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>
Please sign in to comment.
Something went wrong with that request. Please try again.