bcdeery has asked for the wisdom of the Perl Monks concerning the following question:
http://www.dhl-usa.com/TransitTimes/USTTimeRslts.asp?nav=TransitTimes& +oz=53213&oc=1&oh=ORD&dz=60056&dc=1&dt=1/6/2006&tt=1&hy=&zn=2&am=Y
How do I do a search (and print) the number of days in transit (in this case "1"). Every search I try seems to come up without finding the phrase. The immediate phrase of the HTML that the "1" is in <div class="pL5">1 is repeated 17 times in this page, but that may vary. I tried to do a search on the paragraph of HTML code that contains the "1" that I need:
, but it won't find it. I'm just usingDHL Ground Service</a> <br> (Letter – 150 Pounds)</div></td> + <td><div class="pL5">Monday, Jan 9, 2006 &n +bsp;By end of day<img src="http://www.dhl-usa.com/images/blank.gif" w +idth="1" height="1"></div></td> <td><div class="pL5">1
Any suggestions?if( $mech->content =~ m{WHAT I'M SEARCHING FOR COPIED FROM THE SOURCE +CODE}) { print "Ground Service is available";
Edit: g0n - code tags around long url
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: searching a webpage
by johnnywang (Priest) on Jan 06, 2006 at 21:18 UTC | |
|
Re: searching a webpage
by marto (Cardinal) on Jan 07, 2006 at 00:29 UTC |