On Thu, Aug 6, 2009 at 8:37 PM, Ch Lamprecht<ch.l.n...@online.de> wrote: >> scandeps.pl -e "use DateTime::Locale" >> >> scans each DateTime/Locale/*.pm no less than six (6) times and >> each .../unicore/lib/**.pl four times. > > I see lots of stat and open calls in strace output but there is only one > invocation of scan_file() per DateTime/Locale/*.pm
Yeah, 4 of that 6 open calls look like this 5156 open("/usr/share/perl5/DateTime/Locale/yo.pm", O_RDONLY) = 4 5156 lseek(4, 0, SEEK_CUR) = 0 5156 fstat(4, {st_mode=S_IFREG|0644, st_size=11505, ...}) = 0 5156 read(4, "################################"..., 4096) = 4096 5156 lseek(4, 512, SEEK_SET) = 512 5156 lseek(4, 0, SEEK_CUR) = 512 5156 close(4) My guess that's -T "/usr/share/perl5/DateTime/Locale/yo.pm" One open call reads the file up to __END__ and the last one reads the whole file. So these multiple openings are a red herring, sorry. Cheers, Roderich