my $lc; for(open(F, $0); !eof(F) || !($lc=$.) || !close(F) ; ){} print "$lc\n";