in reply to Re: How to use __DATA__ efficiently, help!
in thread How to use __DATA__ efficiently, help!

Actually, that wouldn't help here, as it's not the undefined $data that Perl is complaining about, but the undefined $_.