in reply to How to get data to an array?
The line you're likely looking for:
my @data = split(',',$input_buffer);
In context:
#!/usr/bin/perl use strict; use warnings; my @histofeld = (); open my $input_file, '<', 'test.dat' or die "$!"; while (my $input_buffer = <$input_file>) { chomp $input_buffer; my @data = split(',',$input_buffer); push @histofeld, @data; } close $input_file;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to get data to an array?
by thanos1983 (Parson) on Sep 01, 2017 at 00:22 UTC | |
by buchi2 (Acolyte) on Sep 01, 2017 at 08:38 UTC |