Mail::Message->read(\*STDIN) chokes

Jamie Lawrence <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization clue inc
Message-ID <[email protected]>
Hi -

I'm wondering what I'm doing wrong here. This code 

#!/usr/bin/perl
use Mail::Message;
my $message = Mail::Message->read(\*STDIN);


chokes with: 

$ cat biggie |./stdin.pl 
Can't use string ("Mail::Message") as a HASH ref while "strict refs" in use at /usr/share/perl5/Mail/Message.pm line 853.


I thought that was supposed to work...

Any idea what I'm doing incorrectly?

Thanks.

-j

-- 
Jamie Lawrence                                        [email protected]
"God created the integers, all else is the work of man."
   - Kronecker
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.