MozRepl::Plugin::LinkExtor - Extract "a" and "link" elements.
version 0.01
use MozRepl; use Data::Dump qw(dump); my $repl = MozRepl->new; $repl->setup({ plugins => { plugins => [qw/JSON OpenNewTab LinkExtor/] } }); $repl->open_new_tab({ url => "http://search.cpan.org/", selected => 1 }); sleep(5); my $links = $repl->linkextor(); print dump($links);
Add linkextor() method to MozRepl.
Context object. See MozRepl.
Hash reference. See below detail.
Default 0. If this value is 1, then extracting links from all tabs.
Toru Yamaguchi, <zigorou@cpan.org>
<zigorou@cpan.org>
Please report any bugs or feature requests to bug-mozrepl-plugin-linkextor@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-mozrepl-plugin-linkextor@rt.cpan.org
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MozRepl::Plugin::Location, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MozRepl::Plugin::Location
CPAN shell
perl -MCPAN -e shell install MozRepl::Plugin::Location
For more information on module installation, please visit the detailed CPAN module installation guide.