macubergeek
IS-IT--Management
I've read a file into an array this way:
open(DAT, "combined.nbe") || die("Could not open file!");
my @nessusdata=<DAT>;
close DAT;
The array consists of a thousand lines with 7 fields each line, deliminated with the pipe "|" symbol.
How do I print column 2 and 5 from this array?
open(DAT, "combined.nbe") || die("Could not open file!");
my @nessusdata=<DAT>;
close DAT;
The array consists of a thousand lines with 7 fields each line, deliminated with the pipe "|" symbol.
How do I print column 2 and 5 from this array?