Thanks for all the responses.
I still cant fetch the information. I know its coming down to the newline problem because I tried a test by putting it on one line: <A HREF="JavaScript:AFunction('AA', 'B','0','Project','113')">San Francisco (Manager)
and was able to fetch the different the number that was located where "113" was located:
use LWP::Simple;
my $url = 'www.website.com';
my $content = get($url);
my ($number) = $content =~ /'(\d{3})'\)">San Francisco (Manager)/;
print "$number\n";
BUT I really need to fetch the information where it is split on two lines:
<A HREF="JavaScript:AFunction('AA', 'B','0','Project','113')">
San Francisco (Manager)
I tried both these and still didnt get it to work:
my ($number) = $content =~ /'(\d{3})'\)">\nSan Francisco (Manager)/;
and:
my ($number) = $content =~ /'(\d{3})'\)">San Francisco (Manager)/s;
|