Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Acknowlededment of Contributions

by SuicideJunkie (Vicar)
on Mar 03, 2015 at 15:21 UTC ( [id://1118616]=note: print w/replies, xml ) Need Help??


in reply to Re: Acknowlededment of Contributions
in thread Acknowledgement of Contributions

I'm guessing 411 (Info) would be more the thing, but it could be a different number depending on the country/region.

Sets of regexes are good for matching the various formats and unmangling them into a common form. Importing the mess to a DB (one table, with one field?) and then coming up with SQL statements to do the same thing sounds like a lot more work.

Replies are listed 'Best First'.
Re^4: Acknowlededment of Contributions
by chacham (Prior) on Mar 03, 2015 at 17:11 UTC

    Databases tend to support (limited) regex these days. So, perl is better, but databases are not out of the picture.

    Anyway, the OP says:

    • the data comes from power plants
    • the identifiers are not the same
    • she loaded the data into a spreadsheet

    All this points to many tables (one per plant) with fields (spreadsheet), at the very least, id in one and the rest in another. Matching those ids to each other can be done either through a manual list, or other provided information such as by matching addresses. This can be very easy for a database to do. He should use the best tool for the situation. Perl is the best tool when it comes to text manipulation, any in many, many other cases. Though, a database might be better in this particular case.

Re^3: Acknowlededment of Contributions (112)
by LanX (Saint) on Mar 03, 2015 at 15:36 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 14:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found