Jens Rehsack > WWW-Mechanize-Script > WWW::Mechanize::Script::Util

Download:
WWW-Mechanize-Script-0.101.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.100   Source  

NAME ^

WWW::Mechanize::Script::Util - some basic utility functions for scripts

VERSION ^

version 0.101

EXPORTS ^

This module doesn't export anything by default, but any of the following on request:

FUNCTIONS ^

opt_required_one(\%opt_hash, @opt_names)

Fails by invoking pod2usage when none of the options in @opt_names are given in %opt_hash.

opt_required_all(\%opt_hash, @opt_names)

Fails by invoking pod2usage when any of the options in @opt_names are missing in %opt_hash.

opt_exclusive(\%opt_hash, @opt_names)

Fails by invoking pod2usage when more than one of the options in @opt_names are given in %opt_hash.

load_config(;\%opt_hash)

Tries to load the primary configuration. It looks in any directory returned by "config_dirs" in File::ConfigDir for files named either check_web or like the basename of the invoking script ($0) with any extension supported by Config::Any. The found configuration files are merged into a single configuration hash using Hash::Merge with the LEFT_PRECEDENT ruleset.

When an option hash is given, the default agent is computed based on the value of $opt_hash{file}.

find_scripts(\%cfg,@patterns)

Finds scripts based on configuration and given patterns.

Returns the list of found script file names.

BUGS ^

Please report any bugs or feature requests on the bugtracker website http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Mechanize-Script or by email to bug-www-mechanize-script@rt.cpan.org.

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR ^

Jens Rehsack <rehsack@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2014 by Jens Rehsack.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: