Path::IsDev::HeuristicSet::FromConfig - A Custom Heuristic Set from a configuration file
version 0.002000
export PATH_ISDEV_DEFAULT_SET="FromConfig"; # Whee, is_dev() and friends now seriously different everywhere
By default, it will try to read a configuration file in one of the following paths:
$HOME/.local/share/.path_isdev_heuristicset_fromconfig/config.json $HOME/.path_isdev_heuristicset_fromconfig/config.json
Which ever one it is unfortunately dependent on the sort of mood File::HomeDir is in, and whether or not you have xdg-user-dir in your $PATH
xdg-user-dir
$PATH
Either way, if such a path does not exist the first time you use this module, it will be created for you from the default template in the distributions share directory.
Edit it to your liking.
If you mess it up, just delete it, run the code again, and its back! :D
In fact, its so aggressive at this, I had to put a bit of code in the tests to stop it creating those directories during tests >_>.
Pester File::UserConfig if you want this logic improved.
heuristics
Satisfies the role HeuristicSet::Simple
HeuristicSet::Simple
Returns the values in the configuration file in the field heuristics
negative_heuristics
Returns the values in the configuration file in the field negative_heuristics
Kent Fredric <kentfredric@gmail.com>
This software is copyright (c) 2013 by Kent Fredric <kentfredric@gmail.com>.
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::IsDev::HeuristicSet::FromConfig, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Path::IsDev::HeuristicSet::FromConfig
CPAN shell
perl -MCPAN -e shell install Path::IsDev::HeuristicSet::FromConfig
For more information on module installation, please visit the detailed CPAN module installation guide.