perl@digigate.net writes:
> 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 ?
David,
In perl, the easiest way to read the standard input is:
while (<>) {
# do something here with $_
}
Daniel