Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 surveying the Monastery: (7)
As of 2014-10-01 06:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (389 votes), past polls