-
-
18 Aug 2020 08:01:21 UTC
- Distribution: Mail-Box
- Module version: 3.009
- Source (raw)
- Pod Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (5)
- Testers (726 / 0 / 3)
- Kwalitee
Bus factor: 1- 70.62% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (289.12KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Carp
- Cwd
- Date::Parse
- Devel::GlobalDestruction
- Errno
- Fcntl
- File::Basename
- File::Compare
- File::Copy
- File::Remove
- File::Spec
- File::Temp
- IO::Scalar
- Mail::Message
- Mail::Transport
- Object::Realize::Later
- POSIX
- Scalar::Util
- Sys::Hostname
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Mail::Box::Tie - access an existing message-folder as an array or hash
SYNOPSIS
As an array:
use Mail::Box::Tie; tie my(@inbox), Mail::Box::Tie::ARRAY => $folder; tie my(@inbox), Mail::Box::Tie => $folder; # deprecated print $inbox[3];
or as hash:
tie my(%inbox), Mail::Box::Tie::HASH => $folder; tie my(%inbox), Mail::Box::Tie => $folder; # deprecated print $inbox{'<12379.124879@example.com>'};
DESCRIPTION
The use of
Mail::Box::Tie
is deprecated, because it is succeeded by two separate modules: Mail::Box::Tie::ARRAY and Mail::Box::Tie::HASH. However, this module still works.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
SEE ALSO
This module is part of Mail-Box distribution version 3.009, built on August 18, 2020. Website: http://perl.overmeer.net/CPAN/
LICENSE
Copyrights 2001-2020 by [Mark Overmeer]. For other contributors see ChangeLog.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See http://dev.perl.org/licenses/
Module Install Instructions
To install Mail::Box, copy and paste the appropriate command in to your terminal.
cpanm Mail::Box
perl -MCPAN -e shell install Mail::Box
For more information on module installation, please visit the detailed CPAN module installation guide.