WebFetch::Data::Config - WebFetch configuration data management
version 0.15.9
In all classes other than WebFetch, use WebFetch's config() and has_config() class methods.
use WebFetch; # ... WebFetch->config($key, $write_value); my $read_value = WebFetch->config($key); my $bool_value = WebFetch->has_config($key); my $del_value = WebFetch->del_config($key);
From within WebFetch, class or instance methods may be used interchangeably.
use WebFetch::Data::Config; WebFetch::Data::Config->instance(@params); # instantiate singleton with optional initalization data #... my $config_instance = WebFetch::Data::Config->instance(); #... $config_instance->write_accessor($key, $write_value); my $read_value = $config_instance->read_accessor($key); my $bool_value = $config_instance->contains($key); my $del_value = $config_instance->del($key); # or WebFetch::Data::Config->accessor($key, $write_value); my $read_value = WebFetch::Data::Config->accessor($key); my $bool_value = WebFetch::Data::Config->contains($key); my $del_value = WebFetch::Data::Config->del($key);
WebFetch::Data::Config is a key/value store for global WebFetch configuration data. The methods of this class should only be called from WebFetch. Otherwise use the config() and has_config() class methods provided by WebFetch to access it.
WebFetch https://github.com/ikluft/WebFetch
Please report bugs via GitHub at https://github.com/ikluft/WebFetch/issues
Patches and enhancements may be submitted via a pull request at https://github.com/ikluft/WebFetch/pulls
Ian Kluft <https://github.com/ikluft>
This software is Copyright (c) 1998-2023 by Ian Kluft.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
To install WebFetch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebFetch
CPAN shell
perl -MCPAN -e shell install WebFetch
For more information on module installation, please visit the detailed CPAN module installation guide.