__DATA__ and __END__ indicate the logical end of a module or script before the physical end of the file is reached. Text after __DATA__ or __END__ can be read through the per-package DATA filehandle. For example, take the hypothetical module Primes. Text after __DATA__ in Primes.pm can be read from the Primes::DATA filehandle.
__END__ behaves as a synonym for __DATA in the main package. Text after__END__ tokens in modules is inaccessable.
In reply to Re: __END__ is equivalent to __DATA__ ?
by mifflin
in thread __END__ is equivalent to __DATA__ ?
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |