Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Simple Table structure to file

by virtualsue (Vicar)
on Jan 23, 2007 at 09:41 UTC ( #596057=note: print w/replies, xml ) Need Help??


in reply to Simple Table structure to file

Since we all appear to be giving you different pieces of a solution:
#!/usr/bin/perl use warnings; use strict; use Data::Dumper; my %data; while (my $line = <DATA>) { chomp $line; [parse the input] [assign to your hash] } print Dumper \%data; # check to see if your code set up the HoA corre +ctly __DATA__ 01;22411384 01;18337723 02;38381289 02;38938222 10;13293383

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://596057]
help
Chatterbox?
[RonW]: as I understand it, RPerl "compiles" a subset of Perl to C, so I would expect the final executable to run a lot faster
[RonW]: Is there an English language version of the site?
[LanX]: but Afaik Perl is on average about 10-20 times slower than C
[LanX]: no
[LanX]: but I could ask Herbert to elaborate
[1nickt]: http://rperl.org/ performance_benchm arks.html

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-05-22 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?