Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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 => '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
    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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744311]
help
Chatterbox?
[GotToBTru]: heh
[GotToBTru]: I
[GotToBTru]: ve been looking at a document we have been sending to a customer for years now
[MidLifeXis]: We don't, at least in this case ;-)
[GotToBTru]: and it includes a reference number that I didnt recognize
[GotToBTru]: I had to dig into the code to find out where it came from .. and it makes no sense
[GotToBTru]: so I emailed my contact asking if we could just stop sending it .. I'm afraid she is going to ask "what is that anyway?"
[MidLifeXis]: heh.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2017-01-20 19:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (176 votes). Check out past polls.