App::PerlWatcher::Watcher::HTTPSimple - The simple HTTP watcher, where actual http responce body is been processed by closure
version 0.20
# use the following config for Engine: { class => 'App::PerlWatcher::Watcher::HTTPSimple', config => { url => 'http://download.finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=sl1d1t1c1ohgv&e=.csv', title => '€/$', frequency => 600, timeout => 10, response_handler => sub { (split(',', $_))[1]; }, on => { ok => { 1 => 'notice' }, fail => { 10 => 'info' }, }, }, },
The url been wached
The callback, which is been called as response_handler($body), and which should return the body to be displayed as result.
The last result, which is been stored after invocation of response_handler
Ivan Baidakou <dmol@gmx.com>
This software is copyright (c) 2013 by Ivan Baidakou.
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 App::PerlWatcher::Engine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PerlWatcher::Engine
CPAN shell
perl -MCPAN -e shell install App::PerlWatcher::Engine
For more information on module installation, please visit the detailed CPAN module installation guide.