in reply to __END__ is equivalent to __DATA__ ?

Almost, but not quite equivalent. The data following __END__ is always associated with namespace main::, while __DATA__ is file scoped. That will matter for data sections occuring in modules.

A data section may also be started with Ctrl-Z (ascii \x1a).

You can get the effect your intuition wants with the Inline::Files module. It enables more than one labelled section of data at the end of a perl source file.

After Compline,
Zaxo

  • Comment on Re: __END__ is equivalent to __DATA__ ?