Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Multiple file handles

by NERDVANA (Deacon)
on Feb 05, 2023 at 05:49 UTC ( [id://11150175]=note: print w/replies, xml ) Need Help??


in reply to Multiple file handles

If the reason you used a spreadsheet was because it was the easiest way for you to edit the data, and your actual question here is "what is the easiest way to pull data from a spreadsheet into Perl", I will suggest my Data::TableReader which can easily extract some columns of a spreadsheet into perl hashrefs (one per row) which you can then use in any algorithm you like, such as suggested by others here.

Replies are listed 'Best First'.
Re^2: Multiple file handles
by MoodyDreams999 (Beadle) on Apr 07, 2023 at 21:33 UTC
    OMG that module would of made my life so much easier months ago!!! Thank you!
      Be aware that even five-digit zip codes do not always tell what state a person lives in. I once had a boss who lived in New Jersey. (Paid state and local taxes in NJ. Had a NJ drivers license) But, he had a New York mailing address (both the zip cope and the "NY"). His zip code physically included a small part of NJ.
      Bill
        To add an international case, some German villages like Buesingen are exclaves surrounded by Swiss territory.

        They have two sets of ZIP codes and the official local currency are Swiss francs not euros.

        You'll find plenty of more examples for such bi-national spots on Wikipedia, like Austrian mountain valleys which are only accessible by street from Germany, and so on...

        In the end you will always need look-up tables to cover exceptions in the system.

        Cheers Rolf
        (addicted to the 𐍀𐌴𐍂𐌻 Programming Language :)
        Wikisyntax for the Monastery

        For more info on state ZIP-code insurgency in the USA, see the file noted in the update of tybalt89's reply.


        Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-25 13:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found