Hi Sean,

In your given example, $l becomes a link object, so you go:
$l->url(); to get the URL, for example.

After using your code below, look at this page: 
http://search.cpan.org/~petdance/WWW-Mechanize-1.66/lib/WWW/Mechanize/Link.pm
That will show you how to use $l.

Hope that helps,
Ben

On 24 Jan 2011, at 10:17, Sean Murphy wrote:

> Hi All.
> 
> I am wondering how do you extract properties from objects. If we use 
> WWW:Mechanize as an example. How would you get the properties of the first 
> link. Lets say:
> 
> my $l = $mec->find_link (text => 'link');
> 
> So I would like to find out the text of the link, URL, attribs, etc. This is 
> just an example. When I review the CPAN doc, they don't show this type of 
> information.
> 
> Sean 
> 

Reply via email to