Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Compare Two Files, Merge Updates from One File to the Other

by strat (Canon)
on May 04, 2009 at 10:38 UTC ( #761693=note: print w/ replies, xml ) Need Help??


in reply to Compare Two Files, Merge Updates from One File to the Other

It is easier and more secure to parse the employee data file set by set, search for the username in a directory server (not an LDIF file) and do updates on the fly:

If you export a file, modify it and import it again, you waste time in which other people or jobs may have changed the data (if no other jobs are yet manipulating the data, it may happen in future). So keep the time a modify takes as short as possible => do online updates. And for importing the data again, a script that does updates instead of delete/add is necessary. so why not enhancing this script with the search?

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"


Comment on Re: Compare Two Files, Merge Updates from One File to the Other
Re^2: Compare Two Files, Merge Updates from One File to the Other
by rycher (Acolyte) on May 04, 2009 at 12:50 UTC
    Hmm...doing updates on the fly is a great idea. I will have to investigate the perl-LDAP modules and see if that will be feasible. Thank you.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-07-12 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls