in reply to Simple Table structure to file
It would be nice to see what you tried but here's my take on it.
I reckon you would need two passes. The first to build the table and the second to sort it.
The first pass could be to use a while loop over the data, chomp each line, split on ; and populate your table. The important line might look something like
See if that helps and get back to us if you're still stuck.push @{$table{$key}}, $value;
Update: Fixed typo. Thanks to davorg for spotting it.
|
|---|