in reply to Can't use string ("MODULE") as a HASH ref while "strict refs" in use
running the code in the debugger reveals that this is called at the $folder->addMessage($msg); line.$self->{MB_message_type}->coerce($message);
the problem is that create() does not return an object, (even though the docs claim it's a constructor).
To work around the problem:
Mail::Box::Mbox->create($foldername, access => 'rw'); my $folder = Mail::Box::Mbox->new(folder => $foldername);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
by markov (Scribe) on Aug 10, 2004 at 20:14 UTC | |
|
Re^2: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
by m5m5m (Initiate) on Aug 10, 2004 at 19:11 UTC |