1Mail::Box::Tie(3)     User Contributed Perl Documentation    Mail::Box::Tie(3)
2
3
4

NAME

6       Mail::Box::Tie - access an existing message-folder as an array or hash
7

SYNOPSIS

9       As an array:
10
11        use Mail::Box::Tie;
12        tie my(@inbox), Mail::Box::Tie::ARRAY => $folder;
13        tie my(@inbox), Mail::Box::Tie => $folder;    # deprecated
14        print $inbox[3];
15
16       or as hash:
17
18        tie my(%inbox), Mail::Box::Tie::HASH => $folder;
19        tie my(%inbox), Mail::Box::Tie => $folder;    # deprecated
20        print $inbox{'<12379.124879@example.com>'};
21

DESCRIPTION

23       The use of "Mail::Box::Tie" is deprecated, because it is succeeded by
24       two separate modules: Mail::Box::Tie::ARRAY and Mail::Box::Tie::HASH.
25       However, this module still works.
26
27       Folders certainly look like an array of messages, so why not just
28       access them as one?  Or, the order is not important, but the message-
29       ids are (give relations): why not access them from a hash based on this
30       message-id?  Programs using one of these ties will look simpler than
31       programs using the more traditional method calls.
32

SEE ALSO

34       This module is part of Mail-Box distribution version 2.097, built on
35       January 26, 2011. Website: http://perl.overmeer.net/mailbox/
36

LICENSE

38       Copyrights 2001-2011 by Mark Overmeer. For other contributors see
39       ChangeLog.
40
41       This program is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.  See
43       http://www.perl.com/perl/misc/Artistic.html
44
45
46
47perl v5.12.3                      2011-01-26                 Mail::Box::Tie(3)
Impressum