in reply to Screen scraping

You can try with a simple RegExp like

my ($foo) = $html =~ /id="foo">([^<]+)</gm; print "$foo\n";

Replies are listed 'Best First'.
Re^2: Screen scraping
by CountZero (Bishop) on Dec 28, 2015 at 16:23 UTC
    And then you have something a little bit more complicated than the simple example and your solution breaks.


    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics