m5m5m has asked for the wisdom of the Perl Monks concerning the following question:
Here is the error I get:use strict; use English; use warnings; use Mail::Box::Mbox; my $foldername = 'test.mbox'; my $folder = Mail::Box::Mbox->create($foldername, access => 'rw'); my $msg; my $n =4; while ($n--) { my $msg = Mail::Box::Message->build(From => 'me', data => "Message $n +\n only two\nlines\n---\n"); $msg->print; $folder->addMessage( $msg ); }
Thanks !Can't use string ("Mail::Box::Mbox") as a HASH ref while "strict refs" + in use at I:/Perl/site/lib/Mail/Box.pm line 816.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
by Joost (Canon) on Aug 10, 2004 at 18:04 UTC | |
by markov (Scribe) on Aug 10, 2004 at 20:14 UTC | |
by m5m5m (Initiate) on Aug 10, 2004 at 19:11 UTC | |
|
Re: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
by Aristotle (Chancellor) on Aug 10, 2004 at 17:58 UTC | |
|
Re: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
by dragonchild (Archbishop) on Aug 10, 2004 at 17:18 UTC |