I have a file with rows of data which are typically like
Attr num="101" name="Created" desc="Time file was created." type="t" ord="3" value="2017-06-03T11:27:23+01:00"I want to analyse this so that I can get a hash with data like
Attr num ->101 Name ->Created Desc ->Time file was created Type ->t Ord ->3 Value->2017-06-03T11:27:23+01:00
Therefore it would be the equivalent of
$attr{Name} = Created etcWhat is the simplest way of analysing the line to get the hash data?
In reply to How to analyse structured data to get a hash by merrymonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |