Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Fetching unique info

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


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

What about something like this, assuming all of the lines will follow the same pattern. Given file lines such as:

<A HREF="blah('aa','b','0','Project','112)"> Some Label Without Any Digits
Do:
open(F,"file.html"); @array = <F>; close (F); foreach (@array) { if (/\d/) { my ($s1,$s2,$s3,$s4,$needednumber) = split(/,/); $needednumber =~ s/[^\d]//g; print $needednumber . "\n"; } }


Comment on Re: Re: Re: Fetching unique info
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (18)
As of 2015-07-06 20:26 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 (83 votes), past polls