Mail::Box::Tie3pm
Access an existing message-folder as an array or hash
Usage
As an array:
tie my(@inbox), Mail::Box::Tie::ARRAY => $folder;print $inbox[3];
or as hash:
tie my(%inbox), Mail::Box::Tie::HASH => $folder;print $inbox{'<[email protected]>'};
Inheritance
Mail::Box::Tie is extended byMail::Box::Tie::ARRAYMail::Box::Tie::HASH
Overview
Folders certainly look like an array of messages, so why not just access them as one? Or, the order is not important, but the message-ids are (give relations): why not access them from a hash based on this message-id? Programs using one of these ties will look simpler than programs using the more traditional method calls.
Methods
Constructors
- $class->
new($folder, $type) -
Do not call this method directly, but via the tie interface.
Attributes
- $obj->
folder()
- $obj->
type()
Diagnostics
- Error: no folder specified to tie to.
-
Cast by
new()
Releases
13 releases since Debian 3.0 (Woody); the text changed 11 times.