1WWW::Mechanize::Image(3U)ser Contributed Perl DocumentatiWoWnW::Mechanize::Image(3)
2
3
4

NAME

6       WWW::Mechanize::Image - Image object for WWW::Mechanize
7

SYNOPSIS

9       Image object to encapsulate all the stuff that Mech needs
10

Constructor

12   new()
13       Creates and returns a new "WWW::Mechanize::Image" object.
14
15           my $image = WWW::Mechanize::Image->new( {
16               url    => $url,
17               base   => $base,
18               tag    => $tag,
19               name   => $name,    # From the INPUT tag
20               height => $height,  # optional
21               width  => $width,   # optional
22               alt    => $alt,     # optional
23           } );
24

Accessors

26   $link->url()
27       URL from the link
28
29   $link->base()
30       Base URL to which the links are relative.
31
32   $link->name()
33       Name for the field from the NAME attribute, if any.
34
35   $link->tag()
36       Tag name (either "image" or "input")
37
38   $link->height()
39       Image height
40
41   $link->width()
42       Image width
43
44   $link->alt()
45       ALT attribute from the source tag, if any.
46
47   $link->URI()
48       Returns the URL as a URI::URL object.
49
50   $link->url_abs()
51       Returns the URL as an absolute URL string.
52
54       Copyright (c) 2004 Andy Lester. All rights reserved. This program is
55       free software; you can redistribute it and/or modify it under the same
56       terms as Perl itself.
57
58
59
60perl v5.12.0                      2008-09-28          WWW::Mechanize::Image(3)
Impressum