Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Re: Fetching unique info

by cbro (Pilgrim)
on Jun 05, 2003 at 14:50 UTC ( [id://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"; } }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found