> By the way, is there a function/ perl module for getting the number of > lines in a file? `wc -l` of course works... I think that would be > needed in order to get the line numbers properly left padded > with spaces > like in > > 1 > [...] > 100 > [...] There's the mjd-s Tie::File module you might want to look at...