Thursday, November 18, 2010

Getting last line in file using PERL

#!/usr/bin/perl

open(INFILE, "input.txt") || die "Cannot open file $!\n";
while () {
if (eof) {
print $_;
}
}

Friday, November 12, 2010

Thursday, November 11, 2010

Monday, November 1, 2010