[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: First approximation of source line count for potato



> > So that 8.0 is 8,000, not 8.  Besides, how many scripts are floating around in
> > perl that don't end in .pl?  A /lot/.  File really is needed to be used.
> 
> I would actually trust extention more than file here. Lots of perl
> modules, and even some perl scripts, do not start with a #!/usr/bin/perl
> shebang, and that's the only chance file has to detect perl code.

 File has code to detect the type looking for certain obvious keywords. It
doesn't currently include Perl keywords, but they can be added.


Reply to: