Re: listing all modules

2010-01-29 Thread Kenneth Wolcott
Hi; I must have found this somewhere on this mailing list or somewhere else. I wish I could give credit to who derived it. perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' Hope it helps, Ken Wolcott On Fri, J

Re: listing all modules

2010-01-29 Thread Owen
On Fri, 29 Jan 2010 10:55:42 -0500 ANJAN PURKAYASTHA wrote: > Hi, > Is there a command that lists all installed perl modules in my .cpan > directory? This one liner lists all your installed modules (original source lost in antiquity) # perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find

Re: XML and representations

2010-01-29 Thread Jim Gibson
On 1/29/10 Fri Jan 29, 2010 1:34 PM, "Bruce Ferrell" scribbled: > Perl monks, > > I have a wee problem I can seem to solve. I don't want to get into > should XML::Simple be used, it's not relevant to my question... I don't > think. Below is some very simple XML and below that the output after

XML and representations

2010-01-29 Thread Bruce Ferrell
Perl monks, I have a wee problem I can seem to solve. I don't want to get into should XML::Simple be used, it's not relevant to my question... I don't think. Below is some very simple XML and below that the output after passing it through Dumper. As you can see phone2 is a blank tag (no contents

Re: listing all modules

2010-01-29 Thread ANJAN PURKAYASTHA
Instmodsh worked beautifully. Thanks! Anjan On Fri, Jan 29, 2010 at 11:08 AM, Jeremiah Foster < jerem...@jeremiahfoster.com> wrote: > > I googled this question, here is the results of my clicking on the first > link that came up: > > "This is answered in the Perl FAQ, the answer which can be quic

Re: listing all modules

2010-01-29 Thread Jeremiah Foster
I googled this question, here is the results of my clicking on the first link that came up: "This is answered in the Perl FAQ, the answer which can be quickly found with perldoc -q installed. In short, it comes down to using ExtUtils::Installed or using File::Find, variants of both of which ha

listing all modules

2010-01-29 Thread ANJAN PURKAYASTHA
Hi, Is there a command that lists all installed perl modules in my .cpan directory? TIA, Anjan -- = anjan purkayastha, phd * research associate* fas center for systems biology, * harvard university

Re: AW: Warning: Use of uninitialized value

2010-01-29 Thread Steve Bertrand
Thomas Bätzler wrote: > Bob Williams asked: >> I am trying to split the lines in a file into two halves (at the first >> space) each half going into an array. The code I have written is below. > >> ---Code--- >> #!/usr/bin/perl >> use warnings; >> #use strict; > > use strict; # unless you know w