in reply to Re^6: Help Getting WWW::Mechanize Link reference array to output to STD_OUT.
in thread Help Getting WWW::Mechanize Link reference array to output to STD_OUT.

Any other suggestions?

Study my code closer and employ Basic debugging checklist item 4 ( Dumper )

That part of your original code was right (just like mine). I add  no warnings ... in mine, because the CSS links I'm selecting don't have text/name attributes (returns undef), which warnings will issue a warning for. If the links you're selecting also don't have some attributes, they'll be undef, and you'll get warnings when you try to print them. If you don't it, either disable the warnings (in smallest possible scope) or code-around it

my $value = $link->$member; defined $value and print "$value\n";

If it is something else, you'll have to Dumper-up a minimal demonstration , maybe return value of find_all_links or $mech itself ( How do I post a question effectively? )

Replies are listed 'Best First'.
Re^8: Help Getting WWW::Mechanize Link reference array to output to STD_OUT.
by tfredett (Sexton) on Jul 06, 2012 at 14:03 UTC

    I will indeed look closer at your code and post an update later with results and questions if new ones arise. Thanks for your help!

    Update: I figured out the problem, it turns out the site I have been using is not HTML based despite the strong appearance of it being HTML based. I confirmed this by using my same script as written straight with perlmonks here. It returned the content I would expect from perlmonks, but the other site I have been using does not. I have emailed the site administrator to confirm this hypothesis, as well as to see if they have an alternative to what I am originally trying to do. Thank you for the help, it was much appreciated.