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
This is the code that do this (assume the below code inside script.pl) :
use strict; use warnings my @array = <> ; chomp @array; print "@array";
It is run by:
scirpt.pl [your file]