here's my version of it:
#!/usr/bin/perl
use warnings;
use strict;
my ($line,$i,$n,$emailtext);
while( $line=<DATA> )
{
if( $line =~ m/^\*\*$/) {
$emailtext .= <DATA> if(*DATA);
next if ( $line =~ m/^\*\*$/ );
}
}
print "$emailtext\n"; # you could start your print MAIL
# stuff here.
__DATA__
**
She turned me into a newt!
**
One day, a shell shall emerge from the masses, written
in Perl, and it will be Good.
**
A newt?!
**
The people will rejoice, and it shall be
dubbed 'SuperShell'.
**
I got better.
**
i wasn't entirely certain as to what you were trying to accomplish, though, so this might not be very useful. ):
strfry()