Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: WWW::Mechanize::Link - how to?

by poolpi (Hermit)
on Feb 17, 2009 at 08:03 UTC ( #744311=note: print w/ replies, xml ) Need Help??

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 => '', text => 'report', name => '', tag => 'a', base => '', attr => { 'fields[]' => 'a name', 'fields[xxx.version]' => '5.34' }, } ); __END__ attr => $attr_href


'Ebry haffa hoe hab im tik a bush'. Jamaican proverb

Comment on Re: WWW::Mechanize::Link - how to?
Download Code
Replies are listed 'Best First'.
Re^2: WWW::Mechanize::Link - how to?
by flamey (Scribe) on Feb 17, 2009 at 10:18 UTC
    ahh, thanks! after Corion's reply I figured i probably needed to fill more data, but haven't had a chance to try it yet. and i'm still learning refs (i actually thought this was an original and the only problem in my code).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744311]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2015-11-27 14:42 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (730 votes), past polls