in reply to Re: Getting data out of __DATA__ and __END__
in thread Getting data out of __DATA__ and __END__

I beg to differ.

Try this code:

print while (<DATA>); __DATA__ one two three four five six seven eight
$_ is assigned when using while as a statement modifier.

But as you said, if $_ is a blank line...

JJ