[29488] in Perl-Users-Digest
Perl-Users Digest, Issue: 732 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Aug 9 06:09:44 2007
Date: Thu, 9 Aug 2007 03:09:04 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Thu, 9 Aug 2007 Volume: 11 Number: 732
Today's topics:
How i convert a excel file to csv file <paulito.santana@gmail.com>
Re: How i convert a excel file to csv file <serman_d@hotmail.com>
Re: How to get values and ref types from caller package <el.dodgero@gmail.com>
Re: How to parse directory structure from FTP LIST <lgt@invalid.com>
Re: how to tranpose a huge text file <nospam-abuse@ilyaz.org>
Re: how to tranpose a huge text file <stoupa@practisoft.cz>
Re: how to tranpose a huge text file <paduille.4061.mumia.w+nospam@earthlink.net>
new CPAN modules on Thu Aug 9 2007 (Randal Schwartz)
Re: perl to parse out iostat information on solaris 9 <inetquestion@hotmail.com>
Re: perl to parse out iostat information on solaris 9 anno4000@radom.zrz.tu-berlin.de
Re: problem GD and my package Random->Random::new <szrRE@szromanMO.comVE>
Re: Size of all files in a directory? <ced@blv-sam-01.ca.boeing.com>
Re: Subroutines and '&' <njus@larshaugseth.com>
Re: windows perl modules <mjcarman@mchsi.com>
Re: windows perl modules <stoupa@practisoft.cz>
Re: windows perl modules <wahab@chemie.uni-halle.de>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 09 Aug 2007 00:15:33 -0700
From: Santana <paulito.santana@gmail.com>
Subject: How i convert a excel file to csv file
Message-Id: <1186643733.107705.121670@d55g2000hsg.googlegroups.com>
Hei friends,
i'am new in newbie in Perl, and i try i convert a excel file in csv
file in Suse 10.0 linux.
I install the Spreadsheet-ParseExcel-0.32.tar.gz module in my linux
but when i try run this script :
use strict;
use Spreadsheet::ParseExcel;
my $excel =3D Spreadsheet::ParseExcel::Workbook->Parse($file);
foreach my $sheet (@{$excel->{Worksheet}}) {
printf("Sheet: %s\n", $sheet->{Name});
$sheet->{MaxRow} ||=3D $sheet->{MinRow};
foreach my $row ($sheet->{MinRow} .. $sheet->{MaxRow}) {
$sheet->{MaxCol} ||=3D $sheet->{MinCol};
foreach my $col ($sheet->{MinCol} .. $sheet->{MaxCol}) {
my $cell =3D $sheet->{Cells}[$row][$col];
if ($cell) {
printf("( %s , %s ) =3D> %s\n", $row, $col, $cell-
>{Val});
}
}
}
}
I have a error something like this :
"Can=B4t locate Spreadsheet.pm in @INC(@INC constains : ............"
Can you help me, please ??
Thanks,
Paulito
------------------------------
Date: Thu, 09 Aug 2007 02:47:54 -0700
From: "Serman D." <serman_d@hotmail.com>
Subject: Re: How i convert a excel file to csv file
Message-Id: <1186652874.454812.71000@d55g2000hsg.googlegroups.com>
On Aug 9, 9:15 am, Santana <paulito.sant...@gmail.com> wrote:
> I install the Spreadsheet-ParseExcel-0.32.tar.gz module in my linux
[=2E.]
> "Can=B4t locate Spreadsheet.pm in @INC(@INC constains : ............"
This message means you did not properly install the module, or at
least, Perl was unable to find it. I install CPAN modules as follows:
$ perl -wle 'use strict; use Spreadsheet::ParseExcel'
Can't locate Spreadsheet/ParseExcel.pm in @INC (@INC contains: ...)
$ sudo su -
# perl -MCPAN -e shell
cpan[1]> i Spreadsheet::ParseExcel
Strange distribution name [Spreadsheet::ParseExcel]
Module id =3D Spreadsheet::ParseExcel
DESCRIPTION Get information from Excel file
CPAN_USERID SZABGAB (Gabor Szabo <gabor@pti.co.il>)
CPAN_VERSION 0.32
CPAN_FILE S/SZ/SZABGAB/Spreadsheet-ParseExcel-0.32.tar.gz
DSLIP_STATUS RdpOp (released,developer,perl,object-
oriented,Standard-Perl)
INST_FILE (not installed)
cpan[3]> install Spreadsheet::ParseExcel
Running install for module 'Spreadsheet::ParseExcel'
Running make for S/SZ/SZABGAB/Spreadsheet-ParseExcel-0.32.tar.gz
[=2E..]
cpan[4]> quit
# exit
$ perl -wle 'use strict; use Spreadsheet::ParseExcel'
$
Observe that we now did get no output - which means the module was
properly installed.
--
Serman D.
------------------------------
Date: Thu, 09 Aug 2007 01:09:07 -0000
From: Dodger <el.dodgero@gmail.com>
Subject: Re: How to get values and ref types from caller package
Message-Id: <1186621747.923070.293510@q3g2000prf.googlegroups.com>
On Aug 7, 6:37 pm, mer...@stonehenge.com (Randal L. Schwartz) wrote:
> >>>>> "Dodger" == Dodger <el.dodg...@gmail.com> writes:
>
> Dodger> One of the other problems is that some of the coders have decided to
> Dodger> go ahead and call this thing numberous times even when they don't need
> Dodger> to. Rather than try and hunt down every instance of someone calling
> Dodger> for Foo when they already have a Foo object, i wanted to be able to
> Dodger> look into the symbol table for the caller, find all the variables
> Dodger> there, and check to see if any of the scalars are, in fact, already a
> Dodger> Foo, and, if so, just to return that and do nothing else. This would
> Dodger> bypass the need to check to make sure it's the right *kind* of Foo
> Dodger> because the first time a Foo was grabbed it would be and the
> Dodger> environment doesn't change at runtime. It's safe to trust the former
> Dodger> Foo is the right kind of Foo.
>
> That seems like the hard way. Why don't you just cache the result from
> Foo->new, using some sort of aspect programming (replace ->new with something
> that watches the inputs and return values from the real ->new)?
Thanks, Mr Schwartz! (A little wowed because this feels like if I'd
posted a question on a DOS batch script and gotten a reply from Bill
Gates... only not as evil seeming).
I'm going to do what I can in that vein. For the moment, though, I've
at least made the average time go down from .0887 to .036 seconds,
which is a plus, just by actually checking %INC for the right file and
just using the existing constructor if possible. Killed 5 our of 11
spurious requires that way. Also checked through @INC for the right
file to require if I have to instead of doing an eval "require..."
which seems to have helped some.
I think the next big speed-up I can do at the moment without ...
well... higher-ups wrote some of the base code... in the 90s...
anyway... I've gotten the package loader to not be the slowest thing
happening on the page, so I get to shift gears and figure out which
MySQL SELECTS are taking too long, what indices they aren't using, and
so on.
------------------------------
Date: Thu, 09 Aug 2007 11:06:01 +0300
From: lg <lgt@invalid.com>
Subject: Re: How to parse directory structure from FTP LIST
Message-Id: <9ohlb3p77vhkv9e566trmqscvv0oc9s5nl@4ax.com>
usenet@DavidFilmer.com wrote:
>On Aug 8, 11:08 am, lg <l...@invalid.com> wrote:
>
>> First of all is the directory list standard? Does file/directory name start at
>> column 56 etc?
>
>> If not how do FTP programs parse info if it's not standardised?
>
>FTP output (and even commands) differ widely between systems. For
>example, on my system (AIX), LIST is not even a valid FTP command. In
>AIX, if you do 'DIR' then you get a long listing (like you get with
>LIST), but if you do 'ls' then you get a list of only the filenames.
>Maybe your FTP program also has a command to list only the filenames.
>
>But if you want to really assure that the system is as bullet-proof as
>possible then you should use an FTP module such as Net::FTP instead of
>relying on the result of system commands. With a module you always
>know what to expect, and it is not affected by the vagaries of your
>particular ftp program (and it won't break if your ftp program is
>changed or upgraded and the output changes).
Thank you for your reply.
If system is only limited to those who understand LIST command is the list-file
structure standardised/documented somewhere?
------------------------------
Date: Thu, 9 Aug 2007 02:00:41 +0000 (UTC)
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: how to tranpose a huge text file
Message-Id: <f9dsg9$2d9m$1@agate.berkeley.edu>
[A complimentary Cc of this posting was sent to
Jie
<jiehuang001@gmail.com>], who wrote in article <1186606584.143555.119720@k79g2000hse.googlegroups.com>:
>
> I have a huge text file with 1000 columns and about 1 million rows,
> and I need to transpose this text file so that row become column and
> column become row. (in case you are curious, this is a genotype file).
>
> Can someone recommend me an easy and efficient way to transpose such a
> large dataset, hopefully with Perl ?
If your CRTL allows opening a 1000 output files, read a line, and
append the entries into corresponding files. Then cat the files
together.
If your CRTL allows opening only 32 output files, you need 3 passes,
not 2. First break into 32 files, 32 colums per file; then repeat
breaking for 32 generated files. Again, you get 1000 output files;
cat them together.
Hope this helps,
Ilya
P.S. If all your output data should fit into memory, use scalars
instead of files (preallocate scalars to be extra safe: $a =
'a'; $a x= 4e6; $a = '' preallocates 4MB of buffer for a
variable).
Read file line-by-line, appending to 1000 strings in memory.
Then write them out to a file.
------------------------------
Date: Thu, 9 Aug 2007 05:20:14 +0200
From: "Petr Vileta" <stoupa@practisoft.cz>
Subject: Re: how to tranpose a huge text file
Message-Id: <f9e1t8$2g6h$1@ns.felk.cvut.cz>
Jie wrote:
> I have a huge text file with 1000 columns and about 1 million rows,
> and I need to transpose this text file so that row become column and
> column become row. (in case you are curious, this is a genotype file).
>
> Can someone recommend me an easy and efficient way to transpose such a
> large dataset, hopefully with Perl ?
>
> Thank you very much!
>
> Jie
Maybe you will regard my solution as bizzare, but ...
1) open your file for read
2) open 1000 files for write
3) read row of your file
4) parse columns
5) write 1st column to 1st file, 2nd column to 2nd file etc. but without end
of line "\n"
6) goto 3 until end of file
7) close readed file
8) write "\n" to each of 1000 files and close all
9) simply join all files to one using system command (cp 0.txt + 1.txt ....
> final.txt)
This solution not consumpt much memory and should be relatively quick.
BTW: I'm curious to reactions of this programmer community :-)
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
------------------------------
Date: Wed, 08 Aug 2007 21:52:46 -0500
From: "Mumia W." <paduille.4061.mumia.w+nospam@earthlink.net>
Subject: Re: how to tranpose a huge text file
Message-Id: <13bl688igm6eb03@corp.supernews.com>
On 08/08/2007 09:00 PM, Ilya Zakharevich wrote:
> [A complimentary Cc of this posting was sent to
> Jie
> <jiehuang001@gmail.com>], who wrote in article <1186606584.143555.119720@k79g2000hse.googlegroups.com>:
>> [...]
>> Can someone recommend me an easy and efficient way to transpose such a
>> large dataset, hopefully with Perl ?
>
> If your CRTL allows opening a 1000 output files, read a line, and
> append the entries into corresponding files. Then cat the files
> together.
>
> If your CRTL allows opening only 32 output files, you need 3 passes,
> not 2. [...]
FileCache might also be useful here.
------------------------------
Date: Thu, 9 Aug 2007 04:42:17 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Aug 9 2007
Message-Id: <JMHp2H.10L2@zorch.sf-bay.org>
The following modules have recently been added to or updated in the
Comprehensive Perl Archive Network (CPAN). You can install them using the
instructions in the 'perlmodinstall' page included with your Perl
distribution.
App-CamelPKI-0.04
http://search.cpan.org/~grm/App-CamelPKI-0.04/
A multi-purpose PKI.
----
Bio-Grep-v0.9.0
http://search.cpan.org/~limaone/Bio-Grep-v0.9.0/
Perl extension for searching in Fasta files
----
CGI-SSI-0.92
http://search.cpan.org/~james/CGI-SSI-0.92/
Use SSI from CGI scripts
----
Catalyst-Manual-5.700704
http://search.cpan.org/~jrockway/Catalyst-Manual-5.700704/
The Catalyst developer's manual
----
Clutter-0.401
http://search.cpan.org/~ebassi/Clutter-0.401/
Simple GL-based canvas library
----
Config-JSON-1.1.0
http://search.cpan.org/~rizen/Config-JSON-1.1.0/
A JSON based config file system.
----
DBIx-Class-0.08005
http://search.cpan.org/~mstrout/DBIx-Class-0.08005/
Extensible and flexible object <-> relational mapper.
----
DBIx-MySperql-1.00
http://search.cpan.org/~rogerhall/DBIx-MySperql-1.00/
Module to simplify DBI MySQL statements
----
Data-Queue-Persistent-0.01
http://search.cpan.org/~revmischa/Data-Queue-Persistent-0.01/
Perisistent database-backed queue
----
Data-Queue-Persistent-0.02
http://search.cpan.org/~revmischa/Data-Queue-Persistent-0.02/
Perisistent database-backed queue
----
Egg-Plugin-Cache-UA-0.01
http://search.cpan.org/~lushe/Egg-Plugin-Cache-UA-0.01/
The result of LWP is cached for Egg::Plugin.
----
File-DirSync-1.17
http://search.cpan.org/~bbb/File-DirSync-1.17/
Syncronize two directories rapidly
----
File-DirSync-1.18
http://search.cpan.org/~bbb/File-DirSync-1.18/
Syncronize two directories rapidly
----
File-DirSync-1.20
http://search.cpan.org/~bbb/File-DirSync-1.20/
Syncronize two directories rapidly
----
Games-Bingo-0.14
http://search.cpan.org/~jonasbn/Games-Bingo-0.14/
a bingo game Perl implementation
----
Geo-Geotude-1.0
http://search.cpan.org/~ascope/Geo-Geotude-1.0/
OOP for performing geotude location conversions.
----
Geo-ICAO-0.01
http://search.cpan.org/~jquelin/Geo-ICAO-0.01/
Airport and ICAO codes lookup
----
Geo-Parse-PolishFormat-0.01
http://search.cpan.org/~dmow/Geo-Parse-PolishFormat-0.01/
Perl extension for parsing maps in polish text format (*.mp).
----
HTML-Copy-1.21
http://search.cpan.org/~tkurita/HTML-Copy-1.21/
copy a HTML file without breaking links.
----
HTML-DoCoMoCSS-0.01
http://search.cpan.org/~tokuhirom/HTML-DoCoMoCSS-0.01/
css inliner
----
HTML-SiteTear-1.41
http://search.cpan.org/~tkurita/HTML-SiteTear-1.41/
Make a separated copy of a part of the site
----
HTML-SiteTear-1.42
http://search.cpan.org/~tkurita/HTML-SiteTear-1.42/
Make a separated copy of a part of the site
----
IPC-PerlSSH-0.07
http://search.cpan.org/~pevans/IPC-PerlSSH-0.07/
a class for executing remote perl code over an SSH link
----
Lingua-Alphabet-Phonetic-NetHack-1.03
http://search.cpan.org/~mthurn/Lingua-Alphabet-Phonetic-NetHack-1.03/
map ASCII characters to names of NetHack items
----
Log-Dispatch-Config-1.02
http://search.cpan.org/~miyagawa/Log-Dispatch-Config-1.02/
Log4j for Perl
----
MooseX-Types-0.01
http://search.cpan.org/~phaylon/MooseX-Types-0.01/
Organise your Moose types in libraries
----
MooseX-Types-0.02
http://search.cpan.org/~phaylon/MooseX-Types-0.02/
Organise your Moose types in libraries
----
NTLM-1.03
http://search.cpan.org/~buzz/NTLM-1.03/
An NTLM authentication module
----
Net-Amazon-MechanicalTurk-1.0
http://search.cpan.org/~mturk/Net-Amazon-MechanicalTurk-1.0/
Amazon Mechanical Turk SDK for Perl
----
Net-LDAP-HTMLWidget-0.03
http://search.cpan.org/~andremar/Net-LDAP-HTMLWidget-0.03/
Like FromForm but with Net::LDAP and HTML::Widget
----
Parse-RPN-2.35
http://search.cpan.org/~fdulau/Parse-RPN-2.35/
----
Parse-RPN-2.37
http://search.cpan.org/~fdulau/Parse-RPN-2.37/
----
Perl-Critic-More-0.14
http://search.cpan.org/~cdolan/Perl-Critic-More-0.14/
Supplemental policies for Perl::Critic
----
Socialtext-Resting-0.21
http://search.cpan.org/~lukec/Socialtext-Resting-0.21/
module for accessing Socialtext REST APIs
----
Socialtext-Resting-Utils-0.16
http://search.cpan.org/~lukec/Socialtext-Resting-Utils-0.16/
Utilities for Socialtext REST APIs
----
Test-Mock-LWP-0.05
http://search.cpan.org/~lukec/Test-Mock-LWP-0.05/
Easy mocking of LWP packages
----
Test-StubGenerator-0.9.3
http://search.cpan.org/~kcowgill/Test-StubGenerator-0.9.3/
A simple module that analyzes a given source file and automatically generates t/*.t style tests for subroutines/methods it encounters.
----
Text-CSV-Unicode-0.04
http://search.cpan.org/~rmbarker/Text-CSV-Unicode-0.04/
comma-separated values manipulation routines with potentially wide character data
----
Tk-Wizard-2.013
http://search.cpan.org/~mthurn/Tk-Wizard-2.013/
GUI for step-by-step interactive logical process
----
WWW-Vox-1.0
http://search.cpan.org/~markpasc/WWW-Vox-1.0/
Interact programmatically with Vox
----
Web-MicroID-0.02
http://search.cpan.org/~reclaw/Web-MicroID-0.02/
An implementation of the MicroID standard
----
XML-SemanticDiff-0.97
http://search.cpan.org/~shlomif/XML-SemanticDiff-0.97/
Perl extension for comparing XML documents.
If you're an author of one of these modules, please submit a detailed
announcement to comp.lang.perl.announce, and we'll pass it along.
This message was generated by a Perl program described in my Linux
Magazine column, which can be found on-line (along with more than
200 other freely available past column articles) at
http://www.stonehenge.com/merlyn/LinuxMag/col82.html
print "Just another Perl hacker," # the original
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Wed, 08 Aug 2007 18:20:47 -0700
From: inetquestion <inetquestion@hotmail.com>
Subject: Re: perl to parse out iostat information on solaris 9
Message-Id: <1186622447.972719.237660@q75g2000hsh.googlegroups.com>
Tad,
The output for the debug line appears as follow:
DEBUG: 1 2 3 94
As you mentioned using a 5th variable or trimming the leading space
would work. I guess I got caught up thinking that regex should do the
job with no further modification needed. Is there another one I could
have used instead which would dump leading spaces?
-Inet
------------------------------
Date: 9 Aug 2007 10:07:46 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: perl to parse out iostat information on solaris 9
Message-Id: <5i07biF3lgnkoU1@mid.dfncis.de>
Tad McClellan <tadmc@seesig.invalid> wrote in comp.lang.perl.misc:
> inetquestion <inetquestion@hotmail.com> wrote:
[...]
> I have no idea what the output of iostat looks like.
Nor do I.
>
> > The problem seems to be related
> > to the whitespace at the beginning of the line,
>
>
> Then one solution would be to remove the whitespace at the beginning
> of the line before split()ting the string.
>
> $CPU =~ s/^\s+//;
[...]
> Another solution would be to discard the empty leading field:
>
> (undef, $usrcpu, $syscpu, $wiocpu, $idlecpu) = split(/\s+/, $CPU);
That is only a solution if the empty field is guaranteed to be present.
Since we don't know the format of the line, that's not a given.
Anno
------------------------------
Date: Wed, 8 Aug 2007 22:09:13 -0700
From: "szr" <szrRE@szromanMO.comVE>
Subject: Re: problem GD and my package Random->Random::new
Message-Id: <f9e7i807dp@news2.newsguy.com>
A. Sinan Unur wrote:
> "Stan R." <stan@invalid.blz/hmrprint/com.com> wrote in news:ep0hcj0hp1
> @news2.newsguy.com:
>
>>> john.swilting wrote:
> ...
>
>>>> I am going to eat then to go to sleep me
>>>> I return tomorrow
>
> Good thing I plonked you today then.
I didn't write that line.
>> my $random_obj = new Random;
>>
>> which can be more confortable for people who are used to C/C++/Java
>> grammar.
>
> Please read the section "Indirect Object Syntax" in perldoc perlobj
> before making such recommendations.
Thank you, Sinan, I've made a note of that.
--
Stan R.
------------------------------
Date: Wed, 08 Aug 2007 22:08:07 -0700
From: "comp.llang.perl.moderated" <ced@blv-sam-01.ca.boeing.com>
Subject: Re: Size of all files in a directory?
Message-Id: <1186636087.519348.174580@x40g2000prg.googlegroups.com>
On Aug 7, 3:20 pm, Paul Lalli <mri...@gmail.com> wrote:
> On Aug 7, 6:07 pm, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote:
>
> > Paul Lalli wrote:
> > > I really wish readdir() returned an error if it was passed a
> > > filehandle reference rather than a directoryhandle reference...
>
> > $! seems to contain what you want.
>
> > $ cat test.pl
> > open( my $dh, '.' );
> > my @files = readdir $dh or die $!;
> > $ perl test.pl
> > Inappropriate ioctl for device at test.pl line 2.
>
> Yes, but if you're doing it the "right" way:
>
> open my $dh, '.';
> while (my $file = readdir $dh) {
> print "$file\n";
>
> }
>
> then you're not really given any reason to know that an operating
> system error occurred. It just looks like no files were read. That
> is, there's nothing intuitively telling me readdir returned false
> because there was an OS error, or because the directory actually was
> empty. I guess I would rather it throw an exception.
>
You could get something very similar with Fatal's "succeed or die"
semantics:
use Fatal qw/open readdir/;
eval {open ...; readdir ..; ... };
die $@ if $@;
which generates:
Can't readdir(GLOB(0x23780)): Bad file number
at ...
--
Charles DeRykus
------------------------------
Date: 09 Aug 2007 09:30:42 +0200
From: Lars Haugseth <njus@larshaugseth.com>
Subject: Re: Subroutines and '&'
Message-Id: <m1k5s5qi59.fsf@vader.eiendomsnett.no>
* Martijn Lievaart <m@rtij.nl.invlalid> wrote:
>
> On Wed, 08 Aug 2007 10:42:00 +0000, anno4000 wrote:
>
> > Ignoring the smiley for the moment, the problem with syntax highlighters
> > for Perl is that they aren't reliable. They tend to let you down
> > exactly in the marginal cases when you could use the help.
> >
> > What's worse, sometimes a quirk in the syntax highlighter makes people
> > use non-obvious code because the highlighter can't cope with the obvious
> > solution.
> >
> > Currently I'm still using vim's syntax highlighting only out of inertia.
> > One of these days I'm going to switch it off for good.
>
> Emacs suffers from much the same problems. F.i. quote like operators are
> not properly recognized, making me write:
>
> next if m'^#';
>
> instead of
>
> next if /^#/;
The latter works like a charm here. Make sure you're using a recent
version of cperl-mode, though.
http://www.emacswiki.org/cgi-bin/wiki/CPerlMode
--
Lars Haugseth
"If anyone disagrees with anything I say, I am quite prepared not only to
retract it, but also to deny under oath that I ever said it." -Tom Lehrer
------------------------------
Date: Thu, 09 Aug 2007 02:43:11 GMT
From: Michael Carman <mjcarman@mchsi.com>
Subject: Re: windows perl modules
Message-Id: <3bvui.37546$Xa3.27939@attbi_s22>
On 8/8/2007 7:55 AM, king wrote:
> Where can we download windows perl modules.
>
> From CPAN its very easy to get unix modules. but PPM packages are not found
> in CPAN.
ActiveState doesn't do the best job at keeping it's PPM archives synched up with
what's available on CPAN.
With a few exceptions the modules on CPAN are platform-independent.
Unfortunately for Windows users they tend to assume a *nix-like environment
where "make" (and possibly a C compiler) are available. With a little one-time
effort you can set up your computer so that you can install anything from CPAN:
1) Install nmake
2) Install MinGW
3) Install ExtUtils::FakeConfig
Then change the standard Perl module install mantra slightly:
perl -MConfig_m Makefile.pl
make
make test
make install
The only change is the addition of -MConfig_m when running Makefile.pl.
-mjc
------------------------------
Date: Thu, 9 Aug 2007 05:32:46 +0200
From: "Petr Vileta" <stoupa@practisoft.cz>
Subject: Re: windows perl modules
Message-Id: <f9e1t8$2g6h$2@ns.felk.cvut.cz>
Michele Dondi wrote:
> On Wed, 08 Aug 2007 12:55:33 -0000, king <hara.acharya@gmail.com>
> wrote:
>
>> Is there any site from where I can download PPM perl modules from.
>
> Well, ppm has AS's repository as the predefined one. Others that you
> may add include:
>
> C:\temp>ppm repo
> +---------------------------------------------+
> ¦ id ¦ pkgs ¦ name ¦
> +----+-------+--------------------------------¦
> ¦ 1 ¦ 6808 ¦ ActiveState Package Repository ¦
> ¦ 2 ¦ 645 ¦ uwinnipeg ¦
> ¦ 3 ¦ 416 ¦ bribes ¦
> ¦ 4 ¦ 10432 ¦ trouchelle ¦
> ¦ 5 ¦ 20 ¦ SoulCage ¦
> +---------------------------------------------+
>
Please can you poste here URLs to these repositories?
I use these:
Location: http://search.cpan.org
Type: Webpage
Location: http://www.bribes.org/perl/ppm
Type: Webpage
Location: http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL
Type: PPMServer 3.0
Location: http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer
Type: PPMServer 2.0
--
Petr Vileta, Czech republic
(My server rejects all messages from Yahoo and Hotmail. Send me your mail
from another non-spammer site please.)
------------------------------
Date: Thu, 09 Aug 2007 09:28:54 +0200
From: Mirco Wahab <wahab@chemie.uni-halle.de>
Subject: Re: windows perl modules
Message-Id: <f9efnm$210u$1@nserver.hrz.tu-freiberg.de>
Petr Vileta wrote:
> Please can you poste here URLs to these repositories?
> I use these:
>
> Location: http://search.cpan.org
> Type: Webpage
> Location: http://www.bribes.org/perl/ppm
> Type: Webpage
> Location: http://ppm.ActiveState.com/PPM/ppmserver.plex?urn:/PPM/Server/SQL
> Type: PPMServer 3.0
> Location: http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer
> Type: PPMServer 2.0
http://win32.perl.org/wiki/index.php?title=PPM_Repositories
Regards
M.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V11 Issue 732
**************************************