Path::Resolver::Resolver::Mux::Ordered - multiplex resolvers by checking them in order
version 3.092200
my $resolver = Path::Resolver::Resolver::Mux::Ordered->new({ resolvers => [ $resolver_1, $resolver_2, ... ], }); my $simple_entity = $resolver->entity_for('foo/bar.txt');
This resolver looks in each of its resolvers in order and returns the result of the first of its sub-resolvers to find the named entity. If no entity is found, it returns false as usual.
The default native type of this resolver is Any, meaning that is is much more lax than other resolvers. A native_type can be specified while creating the resolver.
native_type
This is an array of other resolvers. When asked for content, the Mux::Ordered resolver will check each resolver in this array and return the first found content, or false if none finds any content.
This method will add a resolver to the beginning of the list of consulted resolvers.
This method will add a resolver to the end of the list of consulted resolvers.
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2009 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Path::Resolver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::Resolver
CPAN shell
perl -MCPAN -e shell install Path::Resolver
For more information on module installation, please visit the detailed CPAN module installation guide.