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

Re: Removing users from a list

by BrowserUk (Pope)
on Sep 09, 2012 at 01:19 UTC ( #992548=note: print w/replies, xml ) Need Help??

in reply to Removing users from a list

  1. Load the smaller (to-be-removed) list into a hash, having stripped any extraneous bits (eg. say $line =~ s[</+$][];) and having lc'd them.
  2. Read the bigger file line by line; strip any extraneous bits & lc them; if email read exists in the toBeRemoved hash, don't print it; otherwise do.
  3. Redirect the output to a temp file. Delete the original master file; rename the temp file to the master.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992548]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2018-03-24 12:14 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (298 votes). Check out past polls.