| Server IP : 104.21.94.62 / Your IP : 216.73.216.12 Web Server : Apache System : Linux semi1.us.cloudlogin.co 5.10.244-xeon-hst #1 SMP Sun Sep 14 17:09:20 UTC 2025 x86_64 User : xessglobal ( 271017) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : ON Directory : /usr/share/perl5/vendor_perl/Mail/Box/ |
Upload File : |
=encoding utf8
=head1 NAME
Mail::Box::Tie - access an existing message-folder as an array or hash
=head1 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{'<[email protected]>'};
=head1 DESCRIPTION
The use of C<Mail::Box::Tie> is B<deprecated>, because it is succeeded by two
separate modules: L<Mail::Box::Tie::ARRAY|Mail::Box::Tie::ARRAY> and L<Mail::Box::Tie::HASH|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.
=head1 METHODS
=head1 SEE ALSO
This module is part of Mail-Box distribution version 3.008,
built on October 04, 2019. Website: F<http://perl.overmeer.net/CPAN/>
=head1 LICENSE
Copyrights 2001-2019 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 F<http://dev.perl.org/licenses/>