in reply to length of a file

If it's a string, the unhelpfully named perlfunc:length would do the job. If it's a text file, use the -s filetest, as in

my $size = -s $filename;
UPDATE I'm going to ask to have this deleted. -- the later post accordingly =)

Philosophy can be made out of anything. Or less -- Jerry A. Fodor