Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Simple Table structure to file

by wfsp (Abbot)
on Jan 23, 2007 at 09:24 UTC ( [id://596055]=note: print w/replies, xml ) Need Help??


in reply to Simple Table structure to file

Hi ultibuzz!

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

push @{$table{$key}}, $value;
See if that helps and get back to us if you're still stuck.

Update: Fixed typo. Thanks to davorg for spotting it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-20 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found