[28658] in Perl-Users-Digest
Perl-Users Digest, Issue: 10022 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Nov 30 09:05:48 2006
Date: Thu, 30 Nov 2006 06:05:06 -0800 (PST)
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, 30 Nov 2006 Volume: 10 Number: 10022
Today's topics:
Re: CGI parsing <noreply@gunnar.cc>
Re: Dynamic object creation <b.mahdi@gmail.com>
Re: Dynamic object creation <1usa@llenroc.ude.invalid>
Re: Dynamic object creation anno4000@radom.zrz.tu-berlin.de
Re: How do I get rid of this warning? <ro.naldfi.scher@gmail.com>
Re: How do I get rid of this warning? <tadmc@augustmail.com>
Re: How do I get rid of this warning? anno4000@radom.zrz.tu-berlin.de
Re: How to copy a file and force overwirte in perl <rvtol+news@isolution.nl>
Re: Masking/Hiding a password in Perl Source <emschwar@pobox.com>
new CPAN modules on Thu Nov 30 2006 (Randal Schwartz)
Re: NRN <reviewyourdemo@hotmail.com>
p-values from tprob differ from those in excel or R <rahul.thathoo@gmail.com>
Re: p-values from tprob differ from those in excel or R <1usa@llenroc.ude.invalid>
Re: rewrite <reviewyourdemo@hotmail.com>
Re: using DateTime object <rvtol+news@isolution.nl>
Re: using DateTime object <rvtol+news@isolution.nl>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 30 Nov 2006 12:19:19 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: CGI parsing
Message-Id: <4t7t1pF12j73nU1@mid.individual.net>
Ben Morrow wrote:
> If you can do it *correctly* more efficiently than CGI.pm can,
Of course I can; just did.
http://groups.google.com/group/comp.lang.perl.misc/msg/827b6bb5568885f3
I.e. it does *correctly* what it's supposed to do. (It's not supposed to
handle e.g. multivalue fields or file uploads.)
> then by all means please release your code as CGI::VeryEfficient or
> something, and then the rest of us can get the benefit as well.
Since there already are alternative CGI parsing modules, there is no
need to release another one. If one of them was included in the standard
Perl distro, people might be more inclined to use it. I know I would.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: 30 Nov 2006 00:02:07 -0800
From: "bingo" <b.mahdi@gmail.com>
Subject: Re: Dynamic object creation
Message-Id: <1164873727.138292.180370@80g2000cwy.googlegroups.com>
The only thing i can think of at this moment is using tie() on the user
input
such as:
my $input = <INPUT>; # user enters ClassA, ClassB or CLassC
...
tie $input, $input
Any suggestions ??
Thanks
On Nov 29, 6:51 pm, "bingo" <b.ma...@gmail.com> wrote:
> Hi all,
> I was wondering if anyone could help me with this one. I need to create
> objects in Perl at runtime ...
> Users enter the type of class ex.: (ClassA ClassB ClassC) which are all
> children of classX
> When i need to create an object i do
>
> $handler = ClassX::ClassA->new();
>
> Any hints on how i can create objects at runtime ?
>
> Thanks for the help.
>
> M.
------------------------------
Date: Thu, 30 Nov 2006 10:29:57 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Dynamic object creation
Message-Id: <Xns988B37DBEA727asu1cornelledu@127.0.0.1>
"bingo" <b.mahdi@gmail.com> wrote in news:1164862286.461321.38250
@n67g2000cwd.googlegroups.com:
> Hi all,
> I was wondering if anyone could help me with this one. I need to
create
> objects in Perl at runtime ...
> Users enter the type of class ex.: (ClassA classB classC) which are
all
> children of classX
> When i need to create an object i do
>
> $handler = ClassX::ClassA->new();
>
> Any hints on how i can create objects at runtime ?
First off, you need to make sure that you are not accepting arbitrary
user input which you then evaluate blindly.
#!/usr/bin/perl
package X;
use strict;
use warnings;
sub whoami { ref shift }
package X::A;
use strict;
use warnings;
use base 'X';
sub new { bless { } => shift }
package X::B;
use strict;
use warnings;
use base 'X';
sub new { bless { } => shift }
package main;
use strict;
use warnings;
my %ok = map { $_ => 1 } qw( A B );
while ( my $class = <STDIN> ) {
chomp $class;
next unless exists $ok{$class};
eval {
print "X::$class"->new->whoami, "\n";
};
warn $@ if $@;
}
__END__
------------------------------
Date: 30 Nov 2006 13:33:21 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: Dynamic object creation
Message-Id: <4t84t1F12tlqjU1@mid.dfncis.de>
bingo <b.mahdi@gmail.com> wrote in comp.lang.perl.misc:
> Hi all,
> I was wondering if anyone could help me with this one. I need to create
> objects in Perl at runtime ...
> Users enter the type of class ex.: (ClassA classB classC) which are all
> children of classX
> When i need to create an object i do
>
> $handler = ClassX::ClassA->new();
>
> Any hints on how i can create objects at runtime ?
Object creation usually happens at run time. Usually, the class an
object will be created in is determined at compile time, being specified
as a bareword. However, the class can also be specified as a simple
variable. So (untested)
my $class_this_time = 'ClassX::' . $user_input;
my $handler = $class_this_time->new( ...);
Anno
------------------------------
Date: 29 Nov 2006 22:59:52 -0800
From: "Ronny" <ro.naldfi.scher@gmail.com>
Subject: Re: How do I get rid of this warning?
Message-Id: <1164869992.102076.40490@j44g2000cwa.googlegroups.com>
Michele Dondi schrieb:
> On 29 Nov 2006 00:13:22 -0800, "Ronny" <ro.naldfi.scher@gmail.com>
> wrote:
>
> >==================== This is file b.pm
> >#!/usr/local/bin/perl -w
> >use strict;
>
> BTW:
>
> use warnings; # it's better nowadays
Ah, thank you, never heard of it before.
> (And I would be surprised if the shebang line did matter in .pm files,
> unless of course you're also using them as scripts.)
Exactly that's what I wanted to do.
>
> >package b;
>
> This is probably a minimal example, but do not use lowercase only
> names for packages, as those are reserved for pragmas.
Correct. The "real" example has a longer name, starting with an
uppercase
letter.
> BTW: do not use
> B, since it does actually exist.
Indeed! Thank you for telling me - I wouldn't have guessed that!
>
> >sub f { print "BBBBBBBB @_\n"; }
> >eval join('', <main::DATA>) || die $@ unless caller();
> >1
> >__END__
> >package main;
> >b::f(@ARGV);
>
> Huh?!? Smell of XY problem here?
> (<http://perlmonks.org/?node=XY+problem>)
Not really, but here is the X, to give you some background to my
question:
While the file is indeed primarily supposed to be used as a module, I
also
want to invoke it occasionally from the command line (this is a common
technique in, say, Python or Ruby, though I recognize it might not be
so
popular in the Perl community, where people would rather write a
separate
.pl file which uses that module).
When researching for a Perl-feature which would allow me to do this,
I found several solutions, which all worked well. Actually, the one
we are talking about here, works too, only that it exhibits the
warning.
Hence my interest is *really* in how to get rid of this warning - not
so
much because I would need to know this for my particular problem at
hand (the two other ways to use a .pm file as a standalone program
work well too without giving a warning), but because I am a curious
person and am interested in knowing such things.
I know for example how to get rid of a warning when a *variable*
is used only once in a program (use vars qw(...)), but here we have
a file handle, and I would like to find out how to remove the warning
in this case.
Actually, as you pointed out "use warnings" to me, I tried the
following approach:
{
no warnings;
eval ...
}
It's a bit of an overkill (it disables *all* warnings in this block),
but at
least this works.
Ronald
------------------------------
Date: Thu, 30 Nov 2006 05:45:00 -0600
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: How do I get rid of this warning?
Message-Id: <slrnemth1s.98s.tadmc@tadmc30.august.net>
Ronny <ro.naldfi.scher@gmail.com> wrote:
> Michele Dondi schrieb:
>> On 29 Nov 2006 00:13:22 -0800, "Ronny" <ro.naldfi.scher@gmail.com>
>> wrote:
>>
>> >==================== This is file b.pm
>> >#!/usr/local/bin/perl -w
>> >use strict;
>>
>> BTW:
>>
>> use warnings; # it's better nowadays
>
> Ah, thank you, never heard of it before.
> I know for example how to get rid of a warning when a *variable*
> is used only once in a program (use vars qw(...)), but here we have
^^^^^^^^
> a file handle, and I would like to find out how to remove the warning
> in this case.
It also appears that you haven't heard of:
perldoc -f our
which is almost always preferred over "use vars".
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 30 Nov 2006 13:17:52 GMT
From: anno4000@radom.zrz.tu-berlin.de
Subject: Re: How do I get rid of this warning?
Message-Id: <4t8400F12g5leU1@mid.dfncis.de>
Ronny <ro.naldfi.scher@gmail.com> wrote in comp.lang.perl.misc:
> Michele Dondi schrieb:
> > On 29 Nov 2006 00:13:22 -0800, "Ronny" <ro.naldfi.scher@gmail.com>
> > wrote:
[...]
> Actually, as you pointed out "use warnings" to me, I tried the
> following approach:
>
> {
> no warnings;
> eval ...
> }
>
> It's a bit of an overkill (it disables *all* warnings in this block),
> but at
> least this works.
Then make it specific:
{
no warnings 'once';
# ...
}
Anno
------------------------------
Date: Thu, 30 Nov 2006 08:46:02 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: How to copy a file and force overwirte in perl
Message-Id: <ekm5oi.1io.1@news.isolution.nl>
Jay@HK schreef:
> I have to write a perl script to copy and overwrite a file,
> I tried to use file::copy but it seems no options for force overwrite
> the destination file.
> please advise.
s/file::copy/File::Copy/
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: 29 Nov 2006 19:03:54 -0700
From: Eric Schwartz <emschwar@pobox.com>
Subject: Re: Masking/Hiding a password in Perl Source
Message-Id: <877ixdwv05.fsf@aragorn.emschwar>
INVALID_SEE_SIG@example.com.invalid (J.D. Baldwin) writes:
> So, once you run encryptpw, you'll have a file that looks like this
> (dummy data):
>
> ab7458e29a2e01e4b566b8541dfe3a2326312a539fc4bb158eb1c83ff
> 53616c7465645f5f8d8ad43ea2bc5678a2c43c59a245d239abcb2ff3d67d1acf0eeb7d27
>
> You only need to do this once (well, again whenever you change the
> password, but you get the idea).
>
> Set the file read permissions on the above file such that only
> authorized users (e.g., group members, ACL-designated users, whatever)
> can read it.
If you're going to to that, then why not just use the unencrypted
password in the separate file? Anybody who can read your encrypted
file can easily decrypt it, and anyone who can't read it doesn't care
whether or not the file they can't read is encrypted or in plaintext.
-=Eric
------------------------------
Date: Thu, 30 Nov 2006 05:42:15 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Nov 30 2006
Message-Id: <J9J3uF.127p@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.
ACH-Builder-0.02
http://search.cpan.org/~tkeefer/ACH-Builder-0.02/
Tools for Building ACH (Automated Clearing House) Files
----
Apache-Test-1.29
http://search.cpan.org/~pgollucci/Apache-Test-1.29/
Test.pm wrapper with helpers for testing Apache
----
CPAN-1.88_63
http://search.cpan.org/~andk/CPAN-1.88_63/
query, download and build perl modules from CPAN sites
----
Class-DBI-Cascade-Plugin-Nullify-0.03
http://search.cpan.org/~danny/Class-DBI-Cascade-Plugin-Nullify-0.03/
Nullify related Class::DBI objects
----
Combine-3.4.4-1
http://search.cpan.org/~aardo/Combine-3.4.4-1/
----
Crypt-Rijndael-0.06_08
http://search.cpan.org/~bdfoy/Crypt-Rijndael-0.06_08/
Crypt::CBC compliant Rijndael encryption module
----
DBIx-Class-LibXMLdoc-0.01
http://search.cpan.org/~ashley/DBIx-Class-LibXMLdoc-0.01/
create an adjunct "Doc" accessor of a column's data which is automatically parsed into a LibXML documentElement (alpha-software).
----
DBIx-Class-LibXMLdoc-0.02
http://search.cpan.org/~ashley/DBIx-Class-LibXMLdoc-0.02/
create an adjunct "Doc" accessor of a column's data which is automatically parsed into a LibXML documentElement (alpha-software).
----
Data-Dump-1.08
http://search.cpan.org/~gaas/Data-Dump-1.08/
Pretty printing of data structures
----
Email-Simple-1.997_01
http://search.cpan.org/~rjbs/Email-Simple-1.997_01/
Simple parsing of RFC2822 message format and headers
----
Email-Simple-1.997_02
http://search.cpan.org/~rjbs/Email-Simple-1.997_02/
Simple parsing of RFC2822 message format and headers
----
Finance-TickerSymbols-0.10
http://search.cpan.org/~jezra/Finance-TickerSymbols-0.10/
Perl extension for getting symbols lists from web resources
----
Finance-TickerSymbols-0.11
http://search.cpan.org/~jezra/Finance-TickerSymbols-0.11/
Perl extension for getting symbols lists from web resources
----
Fuse-0.08
http://search.cpan.org/~dpavlin/Fuse-0.08/
write filesystems in Perl using FUSE
----
Games-RolePlay-MapGen-0.29.2
http://search.cpan.org/~jettero/Games-RolePlay-MapGen-0.29.2/
The base object for generating dungeons and maps
----
Geo-Ellipsoids-0.05
http://search.cpan.org/~mrdvt/Geo-Ellipsoids-0.05/
Standard perl Geo package for ellipsoids a, b, f and 1/f values.
----
Geo-Ellipsoids-0.06
http://search.cpan.org/~mrdvt/Geo-Ellipsoids-0.06/
Standard perl Geo package for ellipsoids a, b, f and 1/f values.
----
Geo-Forward-0.07
http://search.cpan.org/~mrdvt/Geo-Forward-0.07/
Calculate geographic location from lat, lon, distance, and heading.
----
Geo-Forward-0.08
http://search.cpan.org/~mrdvt/Geo-Forward-0.08/
Calculate geographic location from lat, lon, distance, and heading.
----
Geo-Spline-0.08
http://search.cpan.org/~mrdvt/Geo-Spline-0.08/
Calculate geographic locations between GPS fixes.
----
Getopt-CallingName-1.12
http://search.cpan.org/~srshah/Getopt-CallingName-1.12/
Script duties delegation based upon calling name
----
Kwiki-TypeKey-0.08
http://search.cpan.org/~miyagawa/Kwiki-TypeKey-0.08/
Kwiki TypeKey integration
----
Lingua-UK-Translit-0.10
http://search.cpan.org/~panolex/Lingua-UK-Translit-0.10/
Perl extension for correct transliteration of Ukrainian text in UTF-8 encoding to Latin symbols.
----
Math-Round-0.06
http://search.cpan.org/~grommel/Math-Round-0.06/
Perl extension for rounding numbers
----
Net-GPSD-Server-Fake-0.09
http://search.cpan.org/~mrdvt/Net-GPSD-Server-Fake-0.09/
Provides a Fake GPSD daemon server test harness.
----
Net-TrackIT-0.01
http://search.cpan.org/~dmitri/Net-TrackIT-0.01/
interface to DHL's TrackIT web services
----
POE-Component-Client-NNTP-2.00
http://search.cpan.org/~bingos/POE-Component-Client-NNTP-2.00/
A component that provides access to NNTP.
----
POE-Component-IRC-5.14
http://search.cpan.org/~bingos/POE-Component-IRC-5.14/
a fully event-driven IRC client module.
----
POE-Component-Pluggable-0.01
http://search.cpan.org/~bingos/POE-Component-Pluggable-0.01/
a base class for creating plugin enabled POE Components.
----
Redland-1.0.5.3
http://search.cpan.org/~djbeckett/Redland-1.0.5.3/
Redland RDF Class
----
Rose-DB-Object-0.758
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.758/
Extensible, high performance RDBMS-OO mapper.
----
Rose-HTML-Objects-0.544
http://search.cpan.org/~jsiracusa/Rose-HTML-Objects-0.544/
Object-oriented interfaces for HTML.
----
Sys-Info-0.2
http://search.cpan.org/~burak/Sys-Info-0.2/
Fetch information from the host system
----
Template-Multilingual-0.08
http://search.cpan.org/~cholet/Template-Multilingual-0.08/
Multilingual templates for Template Toolkit
----
Test-Block-0.11
http://search.cpan.org/~adie/Test-Block-0.11/
Specify fine granularity test plans
----
Test-Class-0.22
http://search.cpan.org/~adie/Test-Class-0.22/
Easily create test classes in an xUnit/JUnit style
----
Tie-Tk-Text-0.91
http://search.cpan.org/~mjcarman/Tie-Tk-Text-0.91/
Access Tk::Text or Tk::ROText widgets as arrays.
----
Time-HiRes-1.95
http://search.cpan.org/~jhi/Time-HiRes-1.95/
High resolution alarm, sleep, gettimeofday, interval timers
----
mod_perl-2.0.3
http://search.cpan.org/~pgollucci/mod_perl-2.0.3/
2.0 renaming
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: Thu, 30 Nov 2006 03:41:18 -0500
From: gcr <reviewyourdemo@hotmail.com>
Subject: Re: NRN
Message-Id: <reviewyourdemo-5C9FB0.03411830112006@reader2.panix.com>
In article <1164814717.720161.319430@h54g2000cwb.googlegroups.com>,
"Mr P" <MisterPerl@gmail.com> wrote:
> Not that there is anything WRONG with lacking social skills- heck it's
> a virtual prerequisite to being The President of the USA!
This is off topic but read Fortinate Son. Current prez has very good
social skills - he's also IMHO evil and incompetent but he'd be fun to
have a beer with.
------------------------------
Date: 29 Nov 2006 23:57:35 -0800
From: "rahulthathoo" <rahul.thathoo@gmail.com>
Subject: p-values from tprob differ from those in excel or R
Message-Id: <1164873455.101524.94670@n67g2000cwd.googlegroups.com>
Hi.
I used Statistics:Distribution:tprob to calculate the p-values in perl.
But the values that i got were exactly half the values i got for the
same parameters in Excel and R. How come? Any clues?
Rahul
------------------------------
Date: Thu, 30 Nov 2006 10:16:41 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: p-values from tprob differ from those in excel or R
Message-Id: <Xns988B359BA27A3asu1cornelledu@127.0.0.1>
"rahulthathoo" <rahul.thathoo@gmail.com> wrote in
news:1164873455.101524.94670@n67g2000cwd.googlegroups.com:
> I used Statistics:Distribution:tprob to calculate the p-values in perl.
> But the values that i got were exactly half the values i got for the
> same parameters in Excel and R. How come? Any clues?
Do you know basic statistics? Statistics::Distribution gives 1 - CDF.
On the other hand, the Excel function allows you to specify whether you
want a single tailed or two tailed p-value.
Syntax
TTEST(array1,array2,tails,type)
I am not very familiar with R, but it is probably the same deal.
See http://faculty.vassar.edu/lowry/t_single.html
Sinan
------------------------------
Date: Thu, 30 Nov 2006 03:34:25 -0500
From: gcr <reviewyourdemo@hotmail.com>
Subject: Re: rewrite
Message-Id: <reviewyourdemo-C3D11C.03342530112006@reader2.panix.com>
In article <jzhbh.10329$IW2.8988@trndny03>,
"Jürgen Exner" <jurgenex@hotmail.com> wrote:
Apologies all around for breaking the thread. I was getting chastised
for not using CGI.pm - a poster was rewriting a regex. I liked the code,
made a comment. Sorry for the waste of precious bandwidth. What is this
map of which you speak ;-> That's a joke.
The agro level is too high here so I'll stick to lurking.
I tech support some political boards so I see enough flaming.
> gcr wrote:
> > Hey this is cool! Expecially
> > map { s/%(..)/chr(hex $1)/eg; $_ } split /=/, $_, 2;
>
> Well, did you just discover that Perl has map() and split()?
> Sure these are nice functions and I am happy that they excite you so much
> that you had to tell the world, but a bit of explanation about what you
> tried to solve and how those functions work for you would have been nice.
> The way you wrote this nobody nows what you really are talking about.
>
> jue
------------------------------
Date: Thu, 30 Nov 2006 09:14:27 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: using DateTime object
Message-Id: <ekm7hq.1cc.1@news.isolution.nl>
aswad schreef:
> When I ran ppm, I got this error
It works if you have the proper repositories active:
= = = = = = = = = = = = = = = = = = = = = = =
C:\> perl -MDateTime -e1
Can't locate DateTime.pm in @INC (@INC contains: C:/Perl/site/lib C:
BEGIN failed--compilation aborted.
C:\> ppm install DateTime
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Downloading Winnipeg packlist...done
Updating Winnipeg database...done
Downloading RothConsulting packlist...redirect
Downloading RothConsulting packlist...done
[...]
Downloading DateTime-0.34...done
Downloading DateTime-Locale-0.3101...redirect
Downloading DateTime-Locale-0.3101...done
Downloading Params-Validate-0.86...redirect
Downloading Params-Validate-0.86...done
Downloading DateTime-TimeZone-0.56...redirect
Downloading DateTime-TimeZone-0.56...done
Downloading Module-Build-0.2805...redirect
Downloading Module-Build-0.2805...done
Downloading Class-Singleton-1.03...redirect
Downloading Class-Singleton-1.03...done
Unpacking DateTime-0.34...done
Unpacking DateTime-Locale-0.3101...done
Unpacking Params-Validate-0.86...done
Unpacking DateTime-TimeZone-0.56...done
Unpacking Module-Build-0.2805...done
Unpacking Class-Singleton-1.03...done
Generating HTML for DateTime-0.34...done
Generating HTML for DateTime-Locale-0.3101...done
Generating HTML for Params-Validate-0.86...done
Generating HTML for DateTime-TimeZone-0.56...done
Generating HTML for Module-Build-0.2805...done
Generating HTML for Class-Singleton-1.03...done
Installing to site area...done
715 files installed
C:\>
= = = = = = = = = = = = = = = = = = = = = = =
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Thu, 30 Nov 2006 09:47:12 +0100
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: using DateTime object
Message-Id: <ekm9jm.1ik.1@news.isolution.nl>
Ben Morrow schreef:
> aswad:
>> When I ran ppm, I got this error
>> ppm install failed: Can't find any package that provide DateTime
>
> Then install it using CPAN.pm, in the usual way:
That is not the usual way when you have AS-Perl on Windows. :)
First you add repositories and try on from there.
C:\> ppm repo list
+----+------+--------------------------------+
| id | pkgs | name |
+----+------+--------------------------------+
| 1 | 6404 | ActiveState Package Repository |
| 2 | 597 | Winnipeg |
| 3 | 7 | RothConsulting |
+----+------+--------------------------------+
(3 enabled repositories)
C:\Perl\Projects\misc>ppm repo desc 1
Id: 1
Name: ActiveState Package Repository
URL: http://ppm4.activestate.com/MSWin32-x86/5.8/819/package.xml
Enabled: yes
Last-Status: 200 OK
Last-Access: 13 minutes ago
Refresh-In: 37 minutes
Last-Modified: 2 days and 14 hours ago
C:\Perl\Projects\misc>ppm repo desc 2
Id: 2
Name: Winnipeg
URL: http://theoryx5.uwinnipeg.ca/ppms/package.xml
Enabled: yes
Last-Status: 200 OK
Last-Access: 13 minutes ago
Refresh-In: 14 minutes
Last-Modified: 5 hours ago
C:\Perl\Projects\misc>ppm repo desc 3
Id: 3
Name: RothConsulting
URL: http://www.roth.net/perl/packages
Enabled: yes
Last-Status: 200 OK
Last-Access: 13 minutes ago
Refresh-In: 47 minutes
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
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 V10 Issue 10022
****************************************