Getting started with WWW::Mechanize is easy (even if WWW::Mechanize::Shell is slightly behind the times)
C:\new\WWW-Mechanize-Shell-0.29>perl -MWWW::Mechanize::Shell -e shell Module File::Modified not found. Automatic reloading disabled. >get http://perl.com/ Retrieving http://perl.com/(200) http://perl.com/>open /Chromosome/ 83: A Chromosome at a Time with Perl, Part 2 99: A Chromosome at a Time with Perl, Part 1 http://perl.com/>open 83 (200) http://www.perl.com/pub/a/2003/10/15/bioinformatics.html>content bioin +formatics2.html http://www.perl.com/pub/a/2003/10/15/bioinformatics.html>back http://perl.com/>open 99 (200) http://www.perl.com/pub/a/2003/09/10/bioinformatics.html>content bioin +formatics1.html http://www.perl.com/pub/a/2003/09/10/bioinformatics.html>script bionfo +rmatics.pl http://www.perl.com/pub/a/2003/09/10/bioinformatics.html>q C:\new\WWW-Mechanize-Shell-0.29>dir bio* Directory of C:\new\WWW-Mechanize-Shell-0.29 10/26/2003 11:05p 38,616 bioinformatics.html 10/26/2003 11:08p 38,617 bioinformatics1.html 10/26/2003 11:08p 30,658 bioinformatics2.html 10/26/2003 11:09p 721 bionformatics.pl C:\new\WWW-Mechanize-Shell-0.29>cat bionformatics.pl #!C:\Perl\bin\perl.exe -w use strict; use WWW::Mechanize; use WWW::Mechanize::FormFiller; use URI::URL; my $agent = WWW::Mechanize->new(); my $formfiller = WWW::Mechanize::FormFiller->new(); $agent->env_proxy(); $agent->get('http://perl.com/'); $agent->form(1) if $agent->forms and scalar @{$agent->forms}; $agent->follow('83'); { my $filename = q{bioinformatics2.html}; local *F; open F, "> $filename" or die "$filename: $!"; binmode F; print F $agent->content,"\n"; close F }; $agent->back(); $agent->follow('99'); { my $filename = q{bioinformatics1.html}; local *F; open F, "> $filename" or die "$filename: $!"; binmode F; print F $agent->content,"\n"; close F }; C:\new\WWW-Mechanize-Shell-0.29>
This is like the first time i've used these (I have before, but since I don't remember anything, it's like I haven't).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: Writing a news retrieval application. by PodMaster
in thread Writing a news retrieval application. by DigitalKitty

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.