| Package-Transporter documentation | view source | Contained in the Package-Transporter distribution. |
Package::Transporter::Path_Partition - Partitions the search path for rules
package A::B::C;
# default search:
# A::B::C
# A::B::
# A::
# ''
use Package::Transporter sub{eval shift}, sub {
$_[0]->search->first('D'); # D before A::B::C
$_[0]->search->not_self; # no A::B::C
$_[0]->search->second('E'); # E after A::B::C
$_[0]->search->not_hierarchy; # no A::B::, A::
$_[0]->search->third('F'); # F before ''
$_[0]->search->not_globally; # no ''
$_[0]->search->last('G'); # G after ''
};
Use the above methods to customize the search path for rules. First and fourth are absolute, the rest are relative. Again, these features target very special requirements.
The following methods belong to the public interface of Package::Transporter::Path_Partition.
Add the given names to the search path, so that they are searched first.
Remove the requesting package from the search path.
Add the given names to the search path, so that they are searched immediately after the requesting package itself.
Remove the hierarchy packages from the search path.
Add the given names to the search path, so that they are searched before the global rules are considered.
Remove the empty package (global rules) from the search path.
Add the given names to the search path, so that they are searched last.
Please see the documentation of the upstream package Package::Transporter.
| Package-Transporter documentation | view source | Contained in the Package-Transporter distribution. |