Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: Re: Fetching unique info

by cbro (Pilgrim)
on Jun 05, 2003 at 18:19 UTC ( #263437=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Fetching unique info
in thread Fetching unique info

Your use of my ($number) = $content =~ /'(\d{3})'\)">\nSan Francisco (Manager)/; seems almost correct. Why don't you modify it slightly to:

my ($number) = $content =~ /'(\d{3})'\)">\s+San Franscisco \(Manager\) +/;
You probably can't guarantee that the newline is a literal "\n", and you didn't escape the parens around the string "Manager".


Comment on Re: Re: Re: Fetching unique info
Select or Download Code
Replies are listed 'Best First'.
Re: Re: Re: Re: Fetching unique info
by Anonymous Monk on Jun 05, 2003 at 18:29 UTC
    Thanks!!!! It now works. I assume "\s+" means match any whitespace character 1 or more times?
      You got it :o)
      There are great tutorials on PM, but if you just want a quick reference...
      Check this out.

      Glad to be of assistance,
      Chris

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://263437]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (12)
As of 2015-07-29 17:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (266 votes), past polls