Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: HTML::Form getting button by id

by mhearse (Chaplain)
on Jul 09, 2012 at 19:30 UTC ( #980750=note: print w/replies, xml ) Need Help??


in reply to Re: HTML::Form getting button by id
in thread HTML::Form getting button by id

Well, I did scan the HTML::Form perldoc before making this post. I would say that the doc could be more digestible by using the term pattern instead of selector. Not that I'm making any excuses. And (don't worry, I'm already wearing my dunce cap) my code is still broke:
my $login; foreach (HTML::Form->parse($self->{resp})) { if ($_->find_input('#btnLogin')) { $login = $_; last; } } die $! if not $login;

Replies are listed 'Best First'.
Re^3: HTML::Form getting button by id
by Corion (Pope) on Jul 09, 2012 at 19:43 UTC

    What part of your code does not work, and how does it fail? Also, what is the input HTML?

      Please disregard my post. I realized that my server at work is running a rather old version of perl: v5.8.8 And thus an old version of HTML::Form which doesn't appear to support the methodology mentioned above. I confirmed that my code works using a recent HTML::Form. My apologies.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980750]
help
Chatterbox?
[james28909]: everything past the first two things you piked from my posts are irrelevant to me and my beliefs. they are side effects.
[james28909]: two or three. if it has to do with how humans are handling said situations, then that is after they were able to evolve into those problems. agnostic means only believe with evidence. i took that from a tyson video
[james28909]: and it seems that racism suggest that there is indeed a better race, but that is for evolution to decide
[1nickt]: "right now, humans are smarter than in any of those times": define "smart"
[erix]: ah, now you're appraoch downvote-territory ;)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (12)
As of 2017-12-15 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (433 votes). Check out past polls.

    Notices?