Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
Devel::INC::Sorted - Keep your hooks in the beginning of @INC
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
This module keeps
@INC sorted much like Tie::Array::Sorted.
The default comparison operator partitions the members into floating and non floating, allowing you to easily keep certain hooks in the beginning of
The sort used is a stable one, to make sure that the order of
@INC for unsorted items remains unchanged.
All exports are optional
Add entries to
Mark the arguments as floating (in the internal hashref).
Remove the items from the hash.
@INC, leaving all it's current elements in place. Further modifications to
@INCwill not cause resorting to happen.
יובל קוג'מן (Yuval Kogman) <firstname.lastname@example.org>
Karen Etheridge <email@example.com>
This software is copyright (c) 2008 by יובל קוג'מן (Yuval Kogman).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.