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
One more answer for you to choose from:
#!/usr/bin/env perl open(FILE, "<", "test.txt") or die("Can't open file"); @lines = ; close(FILE); chomp(@lines); print join(" ", @lines);