my $test = do { local $/; <DATA> }; print $test; [download]
See $/ for an explanation of what it does.
In reply to Re: __DATA__ Inconsistency by moritz in thread __DATA__ Inconsistency by bichonfrise74