[31226] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 2471 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 11 03:09:39 2009

Date: Thu, 11 Jun 2009 00:09:06 -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, 11 Jun 2009     Volume: 11 Number: 2471

Today's topics:
    Re: compare two booleans for equality? <1usa@llenroc.ude.invalid>
    Re: FAQ 4.59 How can I know how many entries are in a h jidanni@jidanni.org
    Re: FAQ 4.59 How can I know how many entries are in a h <jimsgibson@gmail.com>
    Re: FAQ 4.59 How can I know how many entries are in a h <tadmc@seesig.invalid>
        new CPAN modules on Thu Jun 11 2009 (Randal Schwartz)
    Re: Strawberry and Vanilla Perl <sisyphus359@gmail.com>
    Re: Strawberry and Vanilla Perl <ben@morrow.me.uk>
    Re: Strawberry and Vanilla Perl <sisyphus359@gmail.com>
    Re: understanding \Q \E <1usa@llenroc.ude.invalid>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Wed, 10 Jun 2009 18:18:41 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: compare two booleans for equality?
Message-Id: <Xns9C26919834B07asu1cornelledu@127.0.0.1>

Ben Morrow <ben@morrow.me.uk> wrote in
news:vn85g6-ta51.ln1@osiris.mauzo.dyndns.org: 

> 
> Quoth "A. Sinan Unur" <1usa@llenroc.ude.invalid>:
>> Ben Morrow <ben@morrow.me.uk> wrote in news:p235g6-ol1.ln1
>> @osiris.mauzo.dyndns.org:
>> > 
>> >     unless ($condition1 xor $condition2) {
>                            ^^^^^
>> > 
>> > (it's always somewhat puzzled me that there's no ^^ operator...).
>> 
>> There is xor though:
> 
> One of us is very confused... :)

That would be me. I read the ^^ as xor.

> What has puzzled me is that while there are both bitwise '^' and
> low-prec 'xor' forms, there's no high-prec logical '^^' form. It just
> seems a curious ommission. I guess at some point somebody thought that
> the concept of 'logical XOR' was sufficiently obscure that it ought to
> be written out in words.

That makes sense.

I am really out of it today.

Sinan

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/


------------------------------

Date: Thu, 11 Jun 2009 05:53:35 +0800
From: jidanni@jidanni.org
Subject: Re: FAQ 4.59 How can I know how many entries are in a hash?
Message-Id: <87vdn3hi1s.fsf@jidanni.org>

Note also the slight of hand with "elements" becoming "keys", and also
"entire" vs. top level. Wish somebody would fix it. Not newbie me.:
$ perldoc -f length
  ...Note that this cannot be used on an entire array or hash to find out
  how many elements these have. For that, use "scalar @array" and
  "scalar keys %hash" respectively.


------------------------------

Date: Wed, 10 Jun 2009 17:56:56 -0700
From: Jim Gibson <jimsgibson@gmail.com>
Subject: Re: FAQ 4.59 How can I know how many entries are in a hash?
Message-Id: <100620091756566309%jimsgibson@gmail.com>

In article <87vdn3hi1s.fsf@jidanni.org>, <jidanni@jidanni.org> wrote:

> Note also the slight of hand with "elements" becoming "keys", and also
> "entire" vs. top level. Wish somebody would fix it. Not newbie me.:
> $ perldoc -f length
>   ...Note that this cannot be used on an entire array or hash to find out
>   how many elements these have. For that, use "scalar @array" and
>   "scalar keys %hash" respectively.

What do you think needs fixing in that statement?

The "elements" here refers to members of either an array or a hash.
Hash elements have (key,value) pairs, so the number of elements is the
number of keys, and the number of elements is given by 'scalar keys
%hash'. Arrays don't have keys, so the number of elements is given by
'scalar @array'.

There is no 'slight of hand', just the use of the 'keys' operator to
find the number of 'elements' in a hash.

-- 
Jim Gibson


------------------------------

Date: Wed, 10 Jun 2009 20:10:28 -0500
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: FAQ 4.59 How can I know how many entries are in a hash?
Message-Id: <slrnh30mc4.66d.tadmc@tadmc30.sbcglobal.net>

jidanni@jidanni.org <jidanni@jidanni.org> wrote:

> Note also the slight of hand with "elements" becoming "keys",


There is a one-to-one relationship between a hash key and a hash element.

If you know how many hash keys there are, then you also know how
many elements there are.

my %hash = (
    one => 1,
    two => 2,
    three => 3,
);

Three hash keys, three elements.

If you insist there must be six elements there, then multiply the
number of keys by two. Though I cannot think of a practical reason
for needing that...


There is a one-to-one relationship between an array index and an array element.

If you know how many array indexes there are, then you also know how
many elements there are.


> Wish somebody would fix it.


It is not broken.

It seems to be your mental model that needs to be fixed.


-- 
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"


------------------------------

Date: Thu, 11 Jun 2009 04:42:28 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Jun 11 2009
Message-Id: <KL252s.1AFp@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.

ANVL-0.1
http://search.cpan.org/~jak/ANVL-0.1/
routines to support A Name Value Language, version 0.1 
----
Alien-Libjio-1.0
http://search.cpan.org/~frequency/Alien-Libjio-1.0/
Perl package to install libjio (Journalled I/O library) 
----
Alien-WiX-0.305405
http://search.cpan.org/~csjewell/Alien-WiX-0.305405/
Installing and finding Windows Installer XML (WiX) 
----
App-Framework-0.95
http://search.cpan.org/~sdprice/App-Framework-0.95/
A framework for creating applications 
----
App-PM-Announce-0.025
http://search.cpan.org/~rkrimen/App-PM-Announce-0.025/
Announce your PM meeting via Meetup and LinkedIn 
----
Attribute-Handlers-0.84
http://search.cpan.org/~smueller/Attribute-Handlers-0.84/
Simpler definition of attribute handlers 
----
Audio-TagLib-1.50_01
http://search.cpan.org/~dongxu/Audio-TagLib-1.50_01/
a library for reading and editing audio meta data, commonly known as *tags*. 
----
Bot-Applebot-0.01
http://search.cpan.org/~sartak/Bot-Applebot-0.01/
Arbiter of the word card-based game Apples to Apples 
----
Business-OnlinePayment-PaymenTech-1.5
http://search.cpan.org/~gphat/Business-OnlinePayment-PaymenTech-1.5/
PaymenTech backend for Business::OnlinePayment 
----
Catalyst-Devel-1.18
http://search.cpan.org/~flora/Catalyst-Devel-1.18/
Catalyst Development Tools 
----
CatalystX-InjectComponent-0.020
http://search.cpan.org/~rkrimen/CatalystX-InjectComponent-0.020/
Inject components into your Catalyst application 
----
Config-Any-Merge-0.07
http://search.cpan.org/~mdom/Config-Any-Merge-0.07/
Overrinding of configuration variables based on file order 
----
ConfigReader-Simple-1.28
http://search.cpan.org/~bdfoy/ConfigReader-Simple-1.28/
Simple configuration file parser 
----
DBD-ODBC-1.22
http://search.cpan.org/~mjevans/DBD-ODBC-1.22/
ODBC Driver for DBI 
----
DBIx-Class-0.08104
http://search.cpan.org/~ribasushi/DBIx-Class-0.08104/
Extensible and flexible object <-> relational mapper. 
----
DBIx-DataModel-1.16
http://search.cpan.org/~dami/DBIx-DataModel-1.16/
Classes and UML-style Associations on top of DBI 
----
Data-LUID-0.011
http://search.cpan.org/~rkrimen/Data-LUID-0.011/
Generate guaranteed unique local identifiers 
----
Data-LUID-0.012
http://search.cpan.org/~rkrimen/Data-LUID-0.012/
Generate guaranteed unique local identifiers 
----
Data-LUID-0.013
http://search.cpan.org/~rkrimen/Data-LUID-0.013/
Generate guaranteed unique local identifiers 
----
Data-Model-0.00001
http://search.cpan.org/~yappo/Data-Model-0.00001/
model interface which had more data sources unified, a.k.a data/object mapper 
----
Data-TUID-0.01
http://search.cpan.org/~rkrimen/Data-TUID-0.01/
A smaller and more communicable pseudo-UUID 
----
Data-TUID-0.011
http://search.cpan.org/~rkrimen/Data-TUID-0.011/
A smaller and more communicable pseudo-UUID 
----
DateTime-Format-Natural-0.76_03
http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.76_03/
Create machine readable date/time with natural parsing logic 
----
Directory-Organize-0.9
http://search.cpan.org/~mamawe/Directory-Organize-0.9/
create and find directories organized by date 
----
Document-TriPart-0.022
http://search.cpan.org/~rkrimen/Document-TriPart-0.022/
Read, write & edit a tri-part document (preamble, YAML::Tiny header, and body) 
----
EekBoek-1.04.04
http://search.cpan.org/~jv/EekBoek-1.04.04/
Bookkeeping software for small and medium-size businesses 
----
Email-Sender-0.091610_003
http://search.cpan.org/~rjbs/Email-Sender-0.091610_003/
a library for sending email 
----
File-Glob-Slurp-0.02
http://search.cpan.org/~dankogai/File-Glob-Slurp-0.02/
Turns <> into a slurp operator 
----
Finance-Quote-Grab-1
http://search.cpan.org/~kryde/Finance-Quote-Grab-1/
----
FindBin-libs-1.40
http://search.cpan.org/~lembark/FindBin-libs-1.40/
Locate and 'use lib' directories along the path of $FindBin::Bin to automate locating modules. Uses File::Spec and Cwd's abs_path to accomodate multiple O/S and redundant symlinks. 
----
GD-2.43
http://search.cpan.org/~lds/GD-2.43/
Interface to Gd Graphics Library 
----
Growl-GNTP-0.06
http://search.cpan.org/~mattn/Growl-GNTP-0.06/
Perl implementation of GNTP Protocol (Client Part) 
----
Gtk2-Ex-Clock-8
http://search.cpan.org/~kryde/Gtk2-Ex-Clock-8/
simple digital clock widget 
----
HTTP-Engine-FirePHP-0.02
http://search.cpan.org/~marcel/HTTP-Engine-FirePHP-0.02/
Log to FirePHP from within HTTP::Engine 
----
JSON-Streaming-Reader-0.03
http://search.cpan.org/~mart/JSON-Streaming-Reader-0.03/
Read JSON strings in a streaming manner 
----
JSON-Streaming-Reader-0.04
http://search.cpan.org/~mart/JSON-Streaming-Reader-0.04/
Read JSON strings in a streaming manner 
----
JSON-Streaming-Writer-0.02
http://search.cpan.org/~mart/JSON-Streaming-Writer-0.02/
Generate JSON output in a streaming manner 
----
Jifty-Plugin-Authentication-CAS-1.00
http://search.cpan.org/~yvesago/Jifty-Plugin-Authentication-CAS-1.00/
JA-SIG CAS authentication plugin for Jifty 
----
Jifty-Plugin-Authentication-Ldap-1.00
http://search.cpan.org/~yvesago/Jifty-Plugin-Authentication-Ldap-1.00/
LDAP Authentication Plugin for Jifty 
----
Jifty-Plugin-Chart-0.9
http://search.cpan.org/~yvesago/Jifty-Plugin-Chart-0.9/
A charting API for Jifty 
----
Jifty-Plugin-Comment-0.9
http://search.cpan.org/~yvesago/Jifty-Plugin-Comment-0.9/
Add comments to any record 
----
Jifty-Plugin-GoogleMap-0.9
http://search.cpan.org/~yvesago/Jifty-Plugin-GoogleMap-0.9/
GoogleMap plugin 
----
Jifty-Plugin-OpenID-1.00
http://search.cpan.org/~yvesago/Jifty-Plugin-OpenID-1.00/
Provides OpenID authentication for your jifty app 
----
Jorge-0.03
http://search.cpan.org/~porta/Jorge-0.03/
ORM Made simple. 
----
Jorge-Generator-0.01
http://search.cpan.org/~porta/Jorge-Generator-0.01/
The great new Jorge::Generator! 
----
Lingua-JA-FindDates-0.010
http://search.cpan.org/~bkb/Lingua-JA-FindDates-0.010/
scan text to find Japanese dates 
----
Locale-Maketext-TieHash-quant-0.05
http://search.cpan.org/~steffenw/Locale-Maketext-TieHash-quant-0.05/
Tying method quant to a hash 
----
Module-CPANTS-Analyse-0.83
http://search.cpan.org/~domm/Module-CPANTS-Analyse-0.83/
Generate Kwalitee ratings for a distribution 
----
Module-Extract-Use-0.16
http://search.cpan.org/~bdfoy/Module-Extract-Use-0.16/
Pull out the modules a module uses 
----
Module-Release-2.04_03
http://search.cpan.org/~bdfoy/Module-Release-2.04_03/
Automate software releases 
----
Muldis-D-0.78.0
http://search.cpan.org/~duncand/Muldis-D-0.78.0/
Formal spec of Muldis D relational DBMS lang 
----
Net-Rovio-0.8
http://search.cpan.org/~ivantis/Net-Rovio-0.8/
A Perl module for Rovio manipulation 
----
Net-Trac-0.14
http://search.cpan.org/~jesse/Net-Trac-0.14/
Interact with a remote Trac instance 
----
Net-Write-1.05
http://search.cpan.org/~gomor/Net-Write-1.05/
a portable interface to open and send raw data to network 
----
Object-Simple-2.0001
http://search.cpan.org/~kimoto/Object-Simple-2.0001/
Light Weight Minimal Object System 
----
PPI-App-ppi_version-BDFOY-0.12
http://search.cpan.org/~bdfoy/PPI-App-ppi_version-BDFOY-0.12/
brian d foy's rip off of Adam's ppi_version 
----
Padre-Plugin-Ecliptic-0.09
http://search.cpan.org/~azawawi/Padre-Plugin-Ecliptic-0.09/
Padre plugin that provides Eclipse-like useful features 
----
Padre-Plugin-Ecliptic-0.10
http://search.cpan.org/~azawawi/Padre-Plugin-Ecliptic-0.10/
Padre plugin that provides Eclipse-like useful features 
----
PerlIO-via-ToFirePHP-0.01
http://search.cpan.org/~marcel/PerlIO-via-ToFirePHP-0.01/
log to FirePHP via an PerlIO layer 
----
Search-Sitemap-2.08
http://search.cpan.org/~jasonk/Search-Sitemap-2.08/
Perl extension for managing Search Engine Sitemaps 
----
Statistics-Test-WilcoxonRankSum-0.0.5
http://search.cpan.org/~ingrif/Statistics-Test-WilcoxonRankSum-0.0.5/
perform the Wilcoxon (aka Mann-Whitney) rank sum test on two sets of numeric data. 
----
Template-Stash-AutoEscape-0.01
http://search.cpan.org/~mala/Template-Stash-AutoEscape-0.01/
escape automatically in Template-Toolkit. 
----
Test-File-1.29
http://search.cpan.org/~bdfoy/Test-File-1.29/
test file attributes 
----
Test-Output-0.16_01
http://search.cpan.org/~bdfoy/Test-Output-0.16_01/
Utilities to test STDOUT and STDERR messages. 
----
Test-POE-Server-TCP-1.06
http://search.cpan.org/~bingos/Test-POE-Server-TCP-1.06/
A POE Component providing TCP server services for test cases 
----
Tree-RB-0.500001
http://search.cpan.org/~arunbear/Tree-RB-0.500001/
Perl implementation of the Red/Black tree, a type of balanced binary search tree. 
----
UR-0.7
http://search.cpan.org/~sakoht/UR-0.7/
rich declarative non-hierarchical transactional objects 
----
Vroom-0.16
http://search.cpan.org/~ingy/Vroom-0.16/
See Vroom::Vroom. 
----
WWW-Curl-Simple-0.05
http://search.cpan.org/~andremar/WWW-Curl-Simple-0.05/
A simpler interface to WWW::Curl 
----
XHTML-MediaWiki-0.06
http://search.cpan.org/~gam/XHTML-MediaWiki-0.06/
Translate Wiki markup into xhtml 
----
oEdtk-0.421
http://search.cpan.org/~daunay/oEdtk-0.421/
A module for industrial printing processing 


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/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


------------------------------

Date: Wed, 10 Jun 2009 17:19:54 -0700 (PDT)
From: sisyphus <sisyphus359@gmail.com>
Subject: Re: Strawberry and Vanilla Perl
Message-Id: <fc3720ae-dbe4-478d-a526-324531ccf675@z20g2000prh.googlegroups.com>

On Jun 11, 2:13=A0am, Ben Morrow <b...@morrow.me.uk> wrote:

>
> Try installing Perl.pm. At least last time I tried, their %Config
> override didn't override enough, and it ended up passing MSVC switches
> to GCC.

No problems with that module for me on ActivePerl/MinGW/dmake.

> Yes, I am a little annoyed here :). I spent rather more time than I
> would have liked trying to figure out what on Earth was going on, and
> why some people seemed to have an ActivePerl that kind-of worked with
> GCC whereas mine absolutely didn't (I have MSVC6, and it was in my
> PATH).

I think it's the inclusion of MSVC6 in the path that's the problem.
This (from the ActivePerl::Config documentation) is probably all you
needed to see:

$Config{make}
    This will be "nmake" by default, but if no nmake program can be
    found and other compatible make programs are found, then this
value
    will reflect that. Currently dmake is the only other make
    implementation that is compatible enough to build perl extensions.

$Config{cc}, $Config{ccflags},...
    The value of $Config{cc} will be "cl" by default, but if no "cl"
    program can be found and gcc is found, then this value is "gcc"
and
    other values related to the compiler environment is adjusted
    accordingly.

    The ACTIVEPERL_CONFIG_CC environment variable can be set to "gcc"
to
    use "gcc" even when "cl" is found.

I've just checked that adding MSVC6 to the end of the path is a
showstopper (wrt MinGW) - and it is.
And setting ACTIVEPERL_CONFIG_CC to gcc, does override MSVC6 as
advertised - though you still have to use 'nmake' as your make
utility. (I initially assumed that I would then use 'dmake' - but
there's nothing in the documentation to support that assumption :-)

The other thing that should be mentioned is that you have to be using
a recent release of ActivePerl (anything from the last year, maybe
even last 2 years) for this to work reliably. There were some bugs in
the early attempts to get the alternative Config set up correctly.
Even now there is still the potential for problems to arise - $Config
{incpath} and $Config{libpth} are not being overridden when gcc is in
use. (I've recently submitted a bugzilla report for this. Hopefully,
it will be addressed in the future.)

> > If you 'ppm install MinGW' (rather than use Strawberry's MinGW),
> > you'll even be able to build some extensions (eg PGPLOT and various
> > PDL components) on ActivePerl that can't be built on Strawberry Perl -
> > because the MinGW that you 'ppm install' includes the g77 fortran
> > compiler, whereas the MinGW that ships with Strawberry Perl does not.
> > (At least, it didn't last time I checked - apologies if this omission
> > has since been rectified.)
>
> I don't know. I presume you've reported this in the appropriate place
> (which appears to be the Perl-Dist-Strawberry RT queue, AFAICS)? It
> seems like a trivial thing to fix, if it's causing real problems.

Yes - I reported it to a Strawberry Perl wiki (which was the
appropriate place at the time). I think Adam felt that it wasn't
"causing real problems", which I'm not going to argue with - given
that no-one else has ever complained about it.

Cheers,
Rob


------------------------------

Date: Thu, 11 Jun 2009 02:01:05 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Strawberry and Vanilla Perl
Message-Id: <hj16g6-0rh2.ln1@osiris.mauzo.dyndns.org>


Quoth sisyphus <sisyphus359@gmail.com>:
> On Jun 11, 2:13 am, Ben Morrow <b...@morrow.me.uk> wrote:
> >
> > Try installing Perl.pm. At least last time I tried, their %Config
> > override didn't override enough, and it ended up passing MSVC switches
> > to GCC.
> 
> No problems with that module for me on ActivePerl/MinGW/dmake.

Sorry, yes, I'd forgotten I found a workaround at the time (use
EU::FakeConfig to override %Config properly). It's a long time since
I've touched any of this.

> > Yes, I am a little annoyed here :). I spent rather more time than I
> > would have liked trying to figure out what on Earth was going on, and
> > why some people seemed to have an ActivePerl that kind-of worked with
> > GCC whereas mine absolutely didn't (I have MSVC6, and it was in my
> > PATH).
> 
> I think it's the inclusion of MSVC6 in the path that's the problem.

Not only that. The most pressing problem at the time was that
$Config{ldopts} and the other embedding-related values weren't
overridden at all, so I ended up with link lines with MSVC flags in
regardless. (By its nature Perl.pm embeds perl as well as extending it.)

> This (from the ActivePerl::Config documentation) is probably all you
> needed to see:

Yeah, but you see, I don't *use* ActivePerl. I don't use Windows except
when I can't avoid it, and I (then) did most of my development on Linux.
AFAIC ActiveState took something that worked perfectly well on any
standard build of Perl, and broke it, and that's Not Fair :).

> The other thing that should be mentioned is that you have to be using
> a recent release of ActivePerl (anything from the last year, maybe
> even last 2 years) for this to work reliably. There were some bugs in
> the early attempts to get the alternative Config set up correctly.
> Even now there is still the potential for problems to arise - $Config
> {incpath} and $Config{libpth} are not being overridden when gcc is in
> use. (I've recently submitted a bugzilla report for this. Hopefully,
> it will be addressed in the future.)

This is all from longer ago than last year, so it's possible that some
of the bugs I came across have been fixed. I never did understand why
they left half of %Config untouched: simply including a *complete*
Config.pm for gcc *must* be easier, no?

I do realise that at this point I'm being somewhat petulant :).

> > I don't know. I presume you've reported this in the appropriate place
> > (which appears to be the Perl-Dist-Strawberry RT queue, AFAICS)? It
> > seems like a trivial thing to fix, if it's causing real problems.
> 
> Yes - I reported it to a Strawberry Perl wiki (which was the
> appropriate place at the time). I think Adam felt that it wasn't
> "causing real problems", which I'm not going to argue with - given
> that no-one else has ever complained about it.

Fair enough (on both counts, I guess, though I would probably have gone
with 'include it since it doesn't break anything but does fix things').

Ben



------------------------------

Date: Thu, 11 Jun 2009 00:01:20 -0700 (PDT)
From: sisyphus <sisyphus359@gmail.com>
Subject: Re: Strawberry and Vanilla Perl
Message-Id: <5d6c0bbe-63ac-413f-891d-fd980a2b7381@f37g2000pro.googlegroups.com>

On Jun 11, 11:01=A0am, Ben Morrow <b...@morrow.me.uk> wrote:

> AFAIC ActiveState took something that worked perfectly well on any
> standard build of Perl, and broke it, and that's Not Fair :).

Yes - that *would* be annoying. I use ActivePerl on a regular basis
(though not exclusively), so moving with the changes was a fairly
painless experience for me.

> This is all from longer ago than last year, so it's possible that some
> of the bugs I came across have been fixed.

I would go so far as to say that *all* of the bugs you came across
have been fixed. At least, PerlInterp-0.05 is definitely building/
testing fine for me on ActivePerls 5.8.9 and 5.10.0, with MinGW.
(Build 820 of perl 5.8 is the last build of ActivePerl to have had any
of these Config bugs in it, afaik. Build 826 is the latest build.
These bugs were fixed before 5.10 was released.)

> I never did understand why
> they left half of %Config untouched: simply including a *complete*
> Config.pm for gcc *must* be easier, no?

I don't know. ExtUtils::FakeConfig does the same thing. Maybe it's
just a case of doing no more than is necessary. There's nothing to be
gained by overriding existing values with the exact same values.
And, as I understand it, there's more to it than just providing an
alternative Config.pm - you then have to get those altered values into
%Config, and that's why we see, in FakeConfig.pm:


sub import {
  shift;
  my $obj =3D tied %Config::Config;
  my $key;

  while( $key =3D shift ) {
    $obj->{$key} =3D shift;
  }
}

(ActiveState is doing precisely the same thing as EU::FC, but in a
more automated way.)

> I do realise that at this point I'm being somewhat petulant :).

Petulance is a feeling I know well ;-)

Cheers,
Rob


------------------------------

Date: Wed, 10 Jun 2009 18:31:00 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: understanding \Q \E
Message-Id: <Xns9C2693AEAAB87asu1cornelledu@127.0.0.1>

Jürgen Exner <jurgenex@hotmail.com> wrote in
news:nnfu25lsefl3d9109fcurch528llub0t83@4ax.com: 

> Tad J McClellan <tadmc@seesig.invalid> wrote:
>>Jürgen Exner <jurgenex@hotmail.com> wrote:
> [about calling perldoc from command line]
>>> Just for reference: it works exactly the same way from a MS Windows
>>> command line, too.
>>
>>I thought I had heard that it didn't for AS Perl and that the
>>docs in that distro were only in HTML.
>>
>>Is that accurate?
> 
> If "AS" stands for ActiveState Perl then at least for older versions
> both statements are false. AS does install perldoc, it works just
> fine, and the documentation is available in POD and HTML.
> 
> Can't comment on 5.10 because I haven't updated to it yet.

ActiveState Perl (including 5.10) has included with perldoc, standard 
pod documentation and the HTML version ever since the first time I 
installed an ActiveState distribution (circa 5.6 something).

>>Does Strawberry Perl install "perldoc" and the PODs?

Yes it does. It does not install HTML docs however.

Sinan

-- 
A. Sinan Unur <1usa@llenroc.ude.invalid>
(remove .invalid and reverse each component for email address)

comp.lang.perl.misc guidelines on the WWW:
http://www.rehabitation.com/clpmisc/


------------------------------

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 2471
***************************************


home help back first fref pref prev next nref lref last post