[clug] Perl "Preprocessor".

Michael Cohen scudette at gmail.com
Wed Feb 25 05:04:06 GMT 2009

Hi Andrew,
  I dont like perl, but here is a technique I use on python scripts:

touch /tmp/nothing

run your test harness (which should exercise all your modules etc).

find /usr/lib/python2.5/ -anewer /tmp/nothing

Will tell you all the files which were accessed by your program

This technique is also useful for building chroot prisons.


On Wed, Feb 25, 2009 at 3:55 PM, Andrew Janke <a.janke at gmail.com> wrote:
> Preface: I don't like Perl modules, well OK, actually I like them but
> dont like to distribute perl scripts that require a module to be
> installed to my (generally newbie) users.
> So is there some nice doo-hoozit that will scan a perl script and
> include the various Modules when it encounters a "use" or the likes?
> ta
> --
> Andrew Janke
> (a.janke at gmail.com || http://a.janke.googlepages.com/)
> Canberra->Australia    +61 (402) 700 883
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux

More information about the linux mailing list