Max Maischein > WWW-Mechanize-Firefox-0.70 > WWW::Mechanize::Firefox::DSL

Download:
WWW-Mechanize-Firefox-0.70.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.70   Source   Latest Release: WWW-Mechanize-Firefox-0.74

NAME ^

WWW::Mechanize::Firefox::DSL - Domain Specific Language for short scripts

SYNOPSIS ^

    use WWW::Mechanize::Firefox::DSL '$mech';

    get 'http://google.de';
    
    my @links = selector('a');
    print $_->{innerHTML},"\n" for @links;
    
    click($links[0]);
    
    print content;

This module exports all methods of one WWW::Mechanize::Firefox object as subroutines. That way, you can write short scripts without cluttering every line with $mech->.

This module is highly experimental and might vanish from the distribution again if I find that it is useless.

AUTHORS ^

Max Maischein corion@cpan.org

COPYRIGHT (c) ^

Copyright 2009-2012 by Max Maischein corion@cpan.org.

LICENSE ^

This module is released under the same terms as Perl itself.

syntax highlighting: