The way that the DATA file handle works is intimately involved with how Perl loads files via do/require/use. What you are attempting will not work. Load your file using do/require/use; not eval.
In reply to Re: Losing __DATA__ when evaling script.
by tobyink
in thread Losing __DATA__ when evaling script.
by yoda54
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |