in reply to WWW::Mechanize::Link - how to?
- the attr key in the constructor, is waiting for a HASHREF not a ARRAYREF.
- the constructor lacks some keys.
my $link = WWW::Mechanize::Link->new( { url => 'http://www.website.com/report/runreport/30', text => 'report', name => '', tag => 'a', base => 'http://www.website.com', attr => { 'fields[xxx.name]' => 'a name', 'fields[xxx.version]' => '5.34' }, } ); __END__ attr => $attr_href
hth,
PooLpi
'Ebry haffa hoe hab im tik a bush'.
Jamaican proverb
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: WWW::Mechanize::Link - how to?
by flamey (Scribe) on Feb 17, 2009 at 10:18 UTC |
In Section
Seekers of Perl Wisdom