# see https://www.dummies.com/programming/r/how-to-create-a-data-frame-from-scratch-in-r/ use Statistics::R; my $R = Statistics::R->new(); my $out = $R->run(<get('employ.data'); use Data::Dumper; print Dumper($frame); $VAR1 = [ 'employee', 'salary', 'startdate', '1', 'John', 'Doe', '21000', '2010-11-01', '2', 'Peter', 'Gynn', '23400', '2008-03-25', '3', 'Jolie', 'Hope', '26800', '2007-03-14' ];