Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

__DATA__ in data section *does* screw up

  • Loading branch information...
commit 65012778a2c98bca584c6c88398a948d610b4dd1 1 parent b2576ce
@miyagawa authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/Data/Section/Simple.pm
View
8 lib/Data/Section/Simple.pm
@@ -94,10 +94,10 @@ caller code.
=head1 BUGS
-If you code has C<__DATA__> somewhere else in the code, this module
-might be tricked by that (though since its match is greedy,
-C<__DATA__> appearing I<before> the actual data section might be
-okay).
+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
+(i.e. in the code) might be okay.
This is by design -- in thoery you can C<tell> the DATA handle before
reading it, but then reloading the data section of the file (handy for
Please sign in to comment.
Something went wrong with that request. Please try again.