How can I use __DATA__ twice?
__DATA__
#!/usr/local/bin/perl use warnings; use 5.012; while ( ) { print; } while ( ) {
In all honesty, the easiest solution is to read DATA once and stash it in an array or variable.
my @data; while(){ push @data, $_; }