Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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 ( #381746=note: print w/ replies, xml ) Need Help??


in reply to Re: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
in thread Can't use string ("MODULE") as a HASH ref while "strict refs" in use

The method documentation was in the wrong section. For the next release, it will move from "Constructors" to "Internals". The right way to open a file, and create it if is doesn't exist yet is very file-open like:

 my $mbox = Mail::Box::Mbox->new(folder => $f,
   access => 'rw', create => 1);
Besides, if you create a message, you always create a Mail::Message, not some Mail::Box::Message, because Mail::Box::Message have some knowledge about location in them, where the message you have created has none yet. It gets a location at $f->addMessage($msg), and will change type at that moment (in this case into a Mail::Box::Mbox::Message).


Comment on Re^2: Can't use string ("MODULE") as a HASH ref while "strict refs" in use
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://381746]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2014-09-21 05:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls