However, the current version of TCL doesn't have Expect. Therefore, I have to remove tcl8.3 first prior to install expect
Here are the steps
# apt-get remove tcl8.3
# apt-get install tcl
# apt-get install expect
When you need a help, think about a wizard
#!/usr/bin/perl
# to test reading a file, split it, then put it into array
use strict;
use warnings;
my $ref_line;
my @lines;
open FH,"testfile.txt";
while () {
push @lines, [split(" ",$_)];
}
for $ref_line (@lines) {
print "@$ref_line[7]\n";
}