Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • See part one [] and part two [] of my Linux Magazine articles.
    • Randal L. Schwartz
    • Stonehenge
    • Randal, thanks again for being wonderful! I was just going to post and say, "I'm aware of WWW::Mechanize, but haven't learned it yet; is there a good tutorial?" Somehow, you're always there when I need you. :)

      J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
  • I'm using LWP to control a web app. This application is not developed in house and the pages can change without notice, although the developers _say_ they will give me a heads up. Some of the result tables are kind of messy, with lots of tables nested in tables. Improper operations of my automation could SERIOUSLY screw things up.

    Given this scenario, I like to use HTTP::TreeBuilder to build a tree of the forms and the results I get and I check them over for consistent structure and format before acting

    • I was just talking about the use of Mech for building a spider, which is what the original post pointed to.

      In your case, it may or may not make sense to use Mech if you're doing a lot of custom form handling. However, there's no reason I can think of NOT to use Mech, since it's a proper subclass of LWP::UserAgent. I figure if you've got it on your machine, might as well use it.



      • Good points, but I couldn't see the job posting, the link was bad or something.

        I don't have it on the machines though... We have a bunch of machines with the same Perl on them all and I have to request a new build and qualification to add modules. Or, I could support my own module paths for some things. I have done that, but that has drawbacks. Kind of a pain, actually.

        I guess I could run my apps from something other than the standard configurations, but that has other problems.

  • I began using LWP to try and create a spider to traverse a number of our webpages. When I started to collect all the data I was going to need to fill out forms, and parsing to follow links, I started to feel intimidated. I then remembered seeing WWW::Mechanize on CPAN. I quickly installed it. Within 30 minutes I was 4 pages into a complex website. Another 15 and I had completed an entire transaction.

    In less than 100 lines of code I have a working spider that reads directions from an XML file. I immediately

  • whenever we go to greece I imagine being able to work there. Greece is ahead of the UK (and way ahead of the US) on mobile use and quality of service (I get better reception in remote valleys and even boating around unpopulated islands), as well as internet use.

    If the current job fulfils its promise, maybe we can afford to buy a summer home in greece and I can work summers there and winter here.


    @JAPH = qw(Hacker Perl Another Just);
    print reverse @JAPH;