On Tue, 9 Jun 1998 perl@digigate.net wrote:
<note>This hasn't much to do with libwww.</note>
> Anyone knows how i can pipe an email message to a perl script.
>
> In the sendmail aliases file i made the following:
>
> test: "|/usr/testing/tes.pl"
>
> now how can i read the mail from the script ?
Either line by line:
while (<ARGV>){
# do something
}
or entirely
undef $/;
$message = <ARGV>;
hth, -Christoph