Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Reclassification based on XML map

by hdb (Prior)
on May 14, 2014 at 12:01 UTC ( #1086016=note: print w/ replies, xml ) Need Help??


in reply to Reclassification based on XML map

If I only look at your sample data, you could use a formula instead of a translation table:

my $new = ord( uc $old ) - 64;

For your more general question, I would suggest to translate your table into a hash of hashes and use XML::Simple to read and write the data.


Comment on Re: Reclassification based on XML map
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (9)
As of 2015-07-07 06:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls