Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2016-12-11 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (169 votes). Check out past polls.