in reply to Filter Data

Hello, and welcome to PerlMonks!

Have another look at your question, and ask yourself this: If I'd been asked this question, could I answer it?.

Now think about what would make this an answerable question?

That's the question to ask!

Replies are listed 'Best First'.
Re^2: Filter Data
by cobra2341 (Initiate) on Aug 27, 2007 at 00:15 UTC
    ok. Heres is the site http://www.thebaseballcube.com/teams/team_32.shtml If you look on that site, it has prior years, like 2005. When you click that link it goes to another page that has a list of players. When you click on a player it has all there info. What I want perl to do is download that page for all the players for all teh years. thanks
      Ok... so as your next step, show us what you have tried so far.
      (Post your code... please remember to follow the formatting guidelines.)

      -David

      The site has alot of ad hyperlinks and I do not want those. Sorry dhoss
        use WWW::Mechanize; use strict; my $mech = WWW::Mechanize->new(); my $url = "http://www. thebaseballcube. com/teams/team_32. shtml"; $mech->get( $url ); $mech->follow_link( text_regex => 2005 );
        Ok so for $mech->follow_link( text_regex => qr/download this/i ; I could type something like 2005 and it download the 2005 page?
        ok here's what I did
        use WWW::Mechanize; use strict; my $mech = WWW::Mechanize->new(); my $url = "http://www. thebaseballcube. com/teams/team_32. shtml"; $mech->get( $url ); $mech->find_all_links();
        and got this error can't find mech. how do I download it
      A reply falls below the community's threshold of quality. You may see it by logging in.