in reply to How to use __DATA__ efficiently, help!
my $data = ''; # set to the empty string
do{ $data = $data . $_ } while (<DATA>);
Always initialize your variables.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use __DATA__ efficiently, help!
by Anonyrnous Monk (Hermit) on Feb 09, 2011 at 20:10 UTC |