Skip to content

Commit

Permalink
Clarified DATA use (GH #138).
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Feb 11, 2011
1 parent 07885f2 commit f56bab8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sections/files.pod
Expand Up @@ -40,10 +40,11 @@ X<C<__END__>>

The special C<DATA> filehandle represents the current file. When Perl finishes
compiling the file, it leaves the package global C<DATA> available and open at
the end of the compilation unit. If you store string data after C<__DATA__> or
C<__END__>, you can read that from the C<DATA> filehandle. This is useful for
short, self-contained programs. C<perldoc perldata> describes this feature in
more detail.
the end of the compilation unit I<if> the file has a C<__DATA__> or C<__END__>
section at the end. If you store string data after C<__DATA__> or C<__END__>,
you can read that from the C<DATA> filehandle. This is useful for short,
self-contained programs. C<perldoc perldata> describes this feature in more
detail.

=end sidebar

Expand Down

0 comments on commit f56bab8

Please sign in to comment.