I have a file named test.txt that is like this:
Test Foo Bar
But I want to put each line in a array and pri
#!/usr/bin/env perl use strict; use warnings; my @array; open(my $fh, "<", "test.txt") or die "Failed to open file: $!\n"; while(<$fh>) { chomp; push @array, $_; } close $fh; print join " ", @array;