Devel::INC::SortedKeep your hooks in the begining of @INC | |
Download |
Devel::INC::Sorted Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Yuval Kogman
- Publisher web site:
- http://search.cpan.org/~nobull/
Devel::INC::Sorted Tags
Devel::INC::Sorted Description
Keep your hooks in the begining of @INC Devel::INC::Sorted is a Perl module that keeps @INC sorted much like Tie::Array::Sorted.The default comparator partitions the members into floating and non floating, allowing you to easily keep certain hooks in the begining of @INC.The sort used is a stable one, to make sure that the order of @INC for unsorted items remains unchanged.SYNOPSIS use Devel::INC::Sorted qw(inc_add_floating); inc_add_floating( \&my_inc_hook ); unshift @INC, \&other_hook; use lib 'blah'; push @INC, 'foo'; warn $INC; # this is still \&my_inc_hook warn $INC; # but \&other_hook was moved down to here Requirements: · Perl
Devel::INC::Sorted Related Software