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

Accessors

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