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

Mark Overmeer <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* Jamie Lawrence ([email protected]) [040219 00:57]:
> 
> 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.

Something strange... what version of Mail::Box do you have installed?
Not a recent one, because the current file is not that large: the docs
got stripped from it.
-- 
               MarkOv

------------------------------------------------------------------------
drs Mark A.C.J. Overmeer                                MARKOV Solutions
       [email protected]                          [email protected]
http://Mark.Overmeer.net                   http://solutions.overmeer.net
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.