in reply to Re: Best way to store/access large dataset?
in thread Best way to store/access large dataset?
I think i'm butchering this trying to get it to work. Is this the right approach to get my data in?
use strict ; use warnings ; use Data::Dumper ; open my $data,"<","ID_file.txt" or die "NO ID FILE: $!"; open my $attrs,"<","Attribute_file.txt" or die "NO ATTR FILE: $!"; sub getdata { while(<$data>){ my ( $fileName, $type ) = split /\t/, $_[1] ; push @{$data}, $type unless !defined $fileName ; } } sub getattrs { while(<$attrs>){ my @attrs = split /\t/, $_[1] ; shift @attrs ; push @{$attrs}, \@attrs unless !defined $attrs[0] ; } }
I know this isn't right, just not sure why.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Best way to store/access large dataset?
by Veltro (Hermit) on Jun 22, 2018 at 20:30 UTC | |
by Speed_Freak (Sexton) on Jun 25, 2018 at 14:33 UTC | |
by Veltro (Hermit) on Jun 26, 2018 at 08:45 UTC | |
by Speed_Freak (Sexton) on Jun 26, 2018 at 23:03 UTC | |
by Veltro (Hermit) on Jun 27, 2018 at 10:26 UTC | |
| |
by Speed_Freak (Sexton) on Jun 25, 2018 at 13:10 UTC |