So you have to open the file file from which your import routine is called (caller should give you that information, I think), and parse it yourself, looking for a line that matches ^__DATA__$.
Or you simply retract from the idea of wanting to use DATA at BEGIN-time.
In reply to Re: Reading from <DATA> in import/BEGIN block
by moritz
in thread Reading from <DATA> in import/BEGIN block
by boblawblah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |