From spikeh at mweb.co.za Wed Oct 6 07:53:17 2004 From: spikeh at mweb.co.za (Spike) Date: Wed Oct 6 07:53:22 2004 Subject: [Za-pm] perl Command line switch Message-ID: <5.2.1.1.2.20041006144829.01e22c70@pop3.mweb.co.za> Hi All It's very quiet out there - guess we must all be too good to have problems :-) Is there a -w type of flag that will list all the variables I have declared with 'my' but have not used? I have some horribly messy scripts that have been growing over the last year and need a good clean out! ... for that matter is there and easy way to list sub-routines that don't get used? (probably not) From jkeen at verizon.net Wed Oct 6 10:28:40 2004 From: jkeen at verizon.net (Jim Keenan) Date: Wed Oct 6 10:28:42 2004 Subject: [Za-pm] perl Command line switch Message-ID: <20041006152840.HTSM17054.out014.verizon.net@outgoing.verizon.net> > > From: Spike > Date: 2004/10/06 Wed AM 08:53:17 EDT > To: Za-pm > Subject: [Za-pm] perl Command line switch > > Hi All > It's very quiet out there - guess we must all be too good to have problems :-) > > Is there a -w type of flag that will list all the variables I have declared > with 'my' but have not used? Of the top of my head, I know of no such flag. But it would be relatively easy to write a script which processes your Perl script line by line, notes which variables have been declared with 'my' and then sets a flag when such variables are subsequently encountered. > I have some horribly messy scripts that have been growing over the last > year and need a good clean out! > ... for that matter is there and easy way to list sub-routines that don't > get used? (probably not) > If your script is crowded with extra subroutines, why not extract them into a separate file which is then 'require'd. Or better still, place them in a module where each subroutine is exported only on request (i.e., not by default). That doesn't exactly tell you which subs are not used ... but it does clean up the mess in the main package. (There is probably some elegant way to do this, say, with Devel::Cover, but I don't have time to think about that now.) Jim Keenan Brooklyn, NY From jackie at afribiz.co.za Tue Oct 26 05:05:52 2004 From: jackie at afribiz.co.za (Jackie Van der Merwe) Date: Tue Oct 26 05:39:14 2004 Subject: [Za-pm] IMPI Message-ID: <1098785152.1113.45.camel@jackie.afribiz.co.za> Impi Linux 2 stable was released during the first week of October. Details at http://www.impilinux.org We are asking for : 1. feedback regarding hardware that is found in Africa that is not supported (please submit on www.impilinux.org) 2. Feedback regarding any bugs, problems and difficulties. Enabling us to release updates and even better software all the time. 3. Computer dealers everywhere that we can train (and supply training material to and refer Linux work to etc.) Please contact ImpiLinux at andre@impilinux.org Thank you for your kind support Kind Regards Jackie www.afribiz.co.za on behalf of the current project leader of impilinux.org Andre Coetzee andre@impilinux.org