Right. Did you look at my response? Try reading from
STDIN.
By the way, you might want to rephrase your question--
it's not very clear (in fact, it's sort of meaningless)
to say that you want to "send an email to perl". That just
doesn't mean anything.
What you want to do, as far as I
can tell, is to have all incoming email messages handled
by a Perl script. So, for example, if I set up a Perl
script to handle my mail, all incoming mail would be
piped to that Perl script, and it could do whatever it
wished with the contents of the messages.
You might want to take a look at Mark-Jason Dominus's
My Life with Spam series. Part One
is up on his site, but I can't seem to get to plover.com, so it's also
on LinuxPlanet;
Part Two
and Part Three
are both up on perl.com. The articles deal with
filtering spam from your mail, but you may be able to
get something useful out of them. Here's a part that deals
specifically with how the mail message gets into your program.