in reply to __END__ is equivalent to __DATA__ ?
__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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re^2: __END__ is equivalent to __DATA__ ?
by merlyn (Sage) on Dec 08, 2004 at 13:55 UTC |