[30950] in Perl-Users-Digest
Perl-Users Digest, Issue: 2195 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Feb 9 11:09:46 2009
Date: Mon, 9 Feb 2009 08:09:11 -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 Mon, 9 Feb 2009 Volume: 11 Number: 2195
Today's topics:
Expand Shortended CIDR notation? <antgoodlife@gmail.com>
Re: Expand Shortended CIDR notation? <glex_no-spam@qwest-spam-no.invalid>
Re: File handle to "in memory" file <devnull4711@web.de>
indented xml using XML::DOM <ptrajkumar@gmail.com>
new CPAN modules on Mon Feb 9 2009 (Randal Schwartz)
Re: Perl vs. .NET (was: Re: Programmers (UK)...?) <ben@morrow.me.uk>
Re: Perl vs. .NET (was: Re: Programmers (UK)...?) <cartercc@gmail.com>
Re: Perl vs. .NET (was: Re: Programmers (UK)...?) <tim@burlyhost.com>
Re: Perl vs. .NET <cartercc@gmail.com>
Re: Perl vs. .NET <rvtol+usenet@xs4all.nl>
Re: Perl vs. .NET <RedGrittyBrick@spamweary.invalid>
Re: win32 perl compiling problem <bwalton@nospam.invalid>
Re: win32 perl compiling problem <steinbach@gmx-topmail.de>
Re: win32 perl compiling problem <jurgenex@hotmail.com>
Re: win32 perl compiling problem <sisyphus359@gmail.com>
Re: win32 perl compiling problem <steinbach@gmx-topmail.de>
Re: win32 perl compiling problem <steinbach@gmx-topmail.de>
Re: win32 perl compiling problem <steinbach@gmx-topmail.de>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 9 Feb 2009 07:51:19 -0800 (PST)
From: Antgoodlife <antgoodlife@gmail.com>
Subject: Expand Shortended CIDR notation?
Message-Id: <88d2443b-9035-4a40-98e9-fe59c9d10774@x10g2000yqk.googlegroups.com>
I'm aware there are a few CIDR modules, however, can any of them
expand short CIDR notation? Some of our unix/freebsd boxes print
routes in this annoying shortened format and I'd like to expand them
for various reasons... (I already written scripts that handle the
destination format so I'd like to continue using them once converted
to a more familiar format...
For example :
10/8
Should be re-written as 10.0.0.0 255.0.0.0 (I'd like both the
network and mask written like that)
Likewise
192.168.50/19
needs to be re-written as 192.168.50.0 255.255.224.0
I'm slightly familiar with the PACK and UNPACK but need some
assistance here.. alternatively some CIDR module might be better
suited here. Thanks in advance.
CIDR is great.. but not when I'm trying to use the expanded formats in
other scripts...
------------------------------
Date: Mon, 09 Feb 2009 10:08:20 -0600
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: Re: Expand Shortended CIDR notation?
Message-Id: <499054f4$0$89398$815e3792@news.qwest.net>
Antgoodlife wrote:
> I'm aware there are a few CIDR modules, however, can any of them
> expand short CIDR notation?
Why not look at the documentation for the ones you found? It
should be easy to tell.
>Some of our unix/freebsd boxes print
> routes in this annoying shortened format and I'd like to expand them
> for various reasons... (I already written scripts that handle the
> destination format so I'd like to continue using them once converted
> to a more familiar format...
>
> For example :
> 10/8
> Should be re-written as 10.0.0.0 255.0.0.0 (I'd like both the
> network and mask written like that)
>
> Likewise
> 192.168.50/19
> needs to be re-written as 192.168.50.0 255.255.224.0
>
> I'm slightly familiar with the PACK and UNPACK but need some
> assistance here.. alternatively some CIDR module might be better
> suited here. Thanks in advance.
>
> CIDR is great.. but not when I'm trying to use the expanded formats in
> other scripts...
See: Net::Netmask
------------------------------
Date: Mon, 09 Feb 2009 15:03:41 +0100
From: Frank Seitz <devnull4711@web.de>
Subject: Re: File handle to "in memory" file
Message-Id: <6vardlFj1ntaU1@mid.individual.net>
Uri Guttman wrote:
>>>>>> "FS" == Frank Seitz <devnull4711@web.de> writes:
>
> FS> our $Stderr;
>
> no need for out as long as only this module needs to see $Stderr
Okay, but this is not relevant, I think.
[Class for STDERR redirection]
> and this is important? and you only have one string var but you asked to
> find out WHICH var was opened for a handle. we showed you to how to
> determine that the handle is attached to a scalar.
From the class' point of view someone else could have opend
the filehandle as an in memory file. The class should redirect in this case too.
The suggested test is not sufficient.
> but how could it be connected to any other variable in your code? you
> control it.
Ideally a class is a piece of code that works properly without
assumptions about the program it is used in.
> if you really need more control use a tied handle (which can be attached
> to any object reference including a hash). store in that hash the
> reference as well and make a method that accesses it. but i still don't
> see the need to know which var is attached to the handle if you only
> have one global handle/var.
You missed the point. I can't remember the state by myself, because
STDERR may change during program execution (under CGI::SpeedyCGI STDERR is
reopened with every CGI call).
> there are other ways to trap stderr too. assuming you use warn (not
> print STDERR) you can use the warning handler in %SIG and then easily
> append all warn output to some var or a log file.
I know this (in my opinon: ugly) concept. I need to capture
the whole STDERR output.
> FS> It's a class which is used in a persistent runtime environment
> FS> (CGI::SpeedyCGI) and knows nothing about the outside world, especially
> FS> nothing about the state of the global STDERR.
>
> and now the harder question, why are you keeping a stderr log in ram and
> not on disk? when are you going to check it? it will be lost when the
> demon restarts.
I use the class in (persistent) CGIs. The class captures STDERR during
execution and the program puts the output into the HTTP response at
the appropriate point. It works well. The limitation in Perls
filehandle API is not a real problem for me: I simply close STDERR
unconditionally and accept the consequence that output between
multiple constructor calls is lost.
Frank
--
Dipl.-Inform. Frank Seitz; http://www.fseitz.de/
Anwendungen für Ihr Internet und Intranet
Tel: 04103/180301; Fax: -02; Industriestr. 31, 22880 Wedel
------------------------------
Date: Mon, 9 Feb 2009 08:00:30 -0800 (PST)
From: Parapura Rajkumar <ptrajkumar@gmail.com>
Subject: indented xml using XML::DOM
Message-Id: <4e6e5221-c981-4c19-8bed-2e39cc762bcc@e1g2000pra.googlegroups.com>
hey all
I am using XML::Dom->printToFile to write out an XML::Dom document
that I created. Is there a way to indent the output. By default the
whole xml is written out in just one line.
XML::Handler::XMLWriter with newlines option claims to do this but
doesn't take an XML::Dom object.
Raj
------------------------------
Date: Mon, 9 Feb 2009 05:42:25 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Mon Feb 9 2009
Message-Id: <KEsAIp.1p0y@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.
Algorithm-Dependency-1.107
http://search.cpan.org/~adamk/Algorithm-Dependency-1.107/
Base class for implementing various dependency trees
----
Any-Moose-0.02
http://search.cpan.org/~flora/Any-Moose-0.02/
use Moose or Mouse modules
----
App-Logbook-0.00_1
http://search.cpan.org/~gugod/App-Logbook-0.00_1/
A multi-purpose personal logging software
----
App-sh2p-0.06
http://search.cpan.org/~clive/App-sh2p-0.06/
Perl program to aid for conversion from UNIX shell to Perl
----
Attribute-Tie-0.02
http://search.cpan.org/~dankogai/Attribute-Tie-0.02/
Tie via Attribute
----
Bundle-CertHost-0.02
http://search.cpan.org/~cosmicnet/Bundle-CertHost-0.02/
A bundle to install PerlCertifiedHosting.com module requirements
----
Business-iDEAL-Adyen-0.02
http://search.cpan.org/~blom/Business-iDEAL-Adyen-0.02/
Backend for iDEAL payments through adyen.com
----
Catalyst-Plugin-Authentication-0.10010
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Authentication-0.10010/
Infrastructure plugin for the Catalyst authentication framework.
----
Catalyst-Plugin-CHI-0.03
http://search.cpan.org/~fayland/Catalyst-Plugin-CHI-0.03/
CHI wrap of Catalyst
----
Catalyst-Plugin-Cache-0.07
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Cache-0.07/
Flexible caching support for Catalyst.
----
Catalyst-Plugin-Session-State-Cookie-0.10
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Session-State-Cookie-0.10/
Maintain session IDs using cookies.
----
Catalyst-Plugin-Session-State-URI-0.08
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Session-State-URI-0.08/
Saves session IDs by rewriting URIs delivered to the client, and extracting the session ID from requested URIs.
----
Catalyst-Plugin-Session-Store-Memcached-0.03
http://search.cpan.org/~bobtfish/Catalyst-Plugin-Session-Store-Memcached-0.03/
Memcached storage backend for session data.
----
Catalyst-View-PDF-Reuse-0.03
http://search.cpan.org/~jonallen/Catalyst-View-PDF-Reuse-0.03/
Create PDF files from Catalyst using Template Toolkit templates
----
Class-DBI-Lite-0.019
http://search.cpan.org/~johnd/Class-DBI-Lite-0.019/
Lightweight ORM for Perl
----
DateTime-Format-Natural-0.74_02
http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.74_02/
Create machine readable date/time with natural parsing logic
----
File-LibMagic-0.91
http://search.cpan.org/~fitzner/File-LibMagic-0.91/
Perlwrapper for libmagic (file-4.x or file-5.x)
----
FreezeThaw-0.44
http://search.cpan.org/~ilyaz/FreezeThaw-0.44/
converting Perl structures to strings and back.
----
Gtk2-Ex-Entry-Pango-0.05_01
http://search.cpan.org/~potyl/Gtk2-Ex-Entry-Pango-0.05_01/
Gtk2 Entry that accepts Pango markup.
----
Hessian-Client-0.1.4
http://search.cpan.org/~heytrav/Hessian-Client-0.1.4/
RPC via Hessian with a remote server.
----
IPC-System-Simple-1.18
http://search.cpan.org/~pjf/IPC-System-Simple-1.18/
Run commands simply, with detailed diagnostics
----
LedgerSMB-API-0.04a
http://search.cpan.org/~hesco/LedgerSMB-API-0.04a/
Exposing the LedgerSMB API to Integrators!
----
Lemonldap-NG-Common-0.92
http://search.cpan.org/~guimard/Lemonldap-NG-Common-0.92/
Common files for Lemonldap::NG infrastructure
----
Lemonldap-NG-Portal-0.87
http://search.cpan.org/~guimard/Lemonldap-NG-Portal-0.87/
The authentication portal part of Lemonldap::NG Web-SSO system.
----
Lingua-EN-Alphabet-Shaw-0.03
http://search.cpan.org/~marnanel/Lingua-EN-Alphabet-Shaw-0.03/
transliterate the Latin to Shavian alphabets
----
Mac-FSEvents-0.01
http://search.cpan.org/~agrundma/Mac-FSEvents-0.01/
Monitor a directory structure for changes
----
Math-Complex-1.56
http://search.cpan.org/~jhi/Math-Complex-1.56/
complex numbers and associated mathematical functions
----
Module-Build-0.31_03
http://search.cpan.org/~ewilhelm/Module-Build-0.31_03/
Build and install Perl modules
----
Monotone-AutomateStdio-0.03
http://search.cpan.org/~aecooper/Monotone-AutomateStdio-0.03/
Perl interface to Monotone via automate stdio
----
POE-Component-Algorithm-Evolutionary-0.0.3
http://search.cpan.org/~jmerelo/POE-Component-Algorithm-Evolutionary-0.0.3/
----
POE-Component-SSLify-0.15
http://search.cpan.org/~apocal/POE-Component-SSLify-0.15/
Makes using SSL in the world of POE easy!
----
POE-Component-Server-NRPE-0.10
http://search.cpan.org/~bingos/POE-Component-Server-NRPE-0.10/
A POE Component implementation of NRPE Daemon.
----
Parse-ErrorString-Perl-0.12
http://search.cpan.org/~szabgab/Parse-ErrorString-Perl-0.12/
Parse error messages from the perl interpreter
----
Perl6-Conf-0.02
http://search.cpan.org/~szabgab/Perl6-Conf-0.02/
Experimental Perl 6 implementation of an INI file reader
----
Perl6-Conf-0.03
http://search.cpan.org/~szabgab/Perl6-Conf-0.03/
Experimental Perl 6 implementation of an INI file reader
----
Portable-0.12
http://search.cpan.org/~adamk/Portable-0.12/
Perl on a Stick (ALPHA)
----
Roguelike-Utils-0.5.254
http://search.cpan.org/~earonesty/Roguelike-Utils-0.5.254/
----
SVN-Hooks-0.14.19
http://search.cpan.org/~gnustavo/SVN-Hooks-0.14.19/
A framework for implementing Subversion hooks.
----
Statistics-Basic-1.6003
http://search.cpan.org/~jettero/Statistics-Basic-1.6003/
A collection of very basic statistics modules
----
Task-CGI-Application-0.01
http://search.cpan.org/~cosmicnet/Task-CGI-Application-0.01/
----
Task-CertHost-0.01
http://search.cpan.org/~cosmicnet/Task-CertHost-0.01/
----
Test-SFTP-0.04
http://search.cpan.org/~xsawyerx/Test-SFTP-0.04/
----
Test-Smoke-1.39
http://search.cpan.org/~abeltje/Test-Smoke-1.39/
The Perl core test smoke suite
----
Test-Valgrind-0.08
http://search.cpan.org/~vpit/Test-Valgrind-0.08/
Test Perl code through valgrind.
----
TryCatch-1.000000
http://search.cpan.org/~ash/TryCatch-1.000000/
first class try catch semantics for Perl, without source filters.
----
Variable-Magic-0.29
http://search.cpan.org/~vpit/Variable-Magic-0.29/
Associate user-defined magic to variables from Perl.
----
XML-Parser-GlobEvents-0.400
http://search.cpan.org/~bartl/XML-Parser-GlobEvents-0.400/
event driven XML parser, filtered on tag path, with element tree for parameter
----
indirect-0.11
http://search.cpan.org/~vpit/indirect-0.11/
Lexically warn about using the indirect object syntax.
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: Mon, 9 Feb 2009 02:51:54 +0000
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Perl vs. .NET (was: Re: Programmers (UK)...?)
Message-Id: <abi466-fq4.ln1@osiris.mauzo.dyndns.org>
Quoth Tim Greer <tim@burlyhost.com>:
> sln@netherlands.com wrote:
Please stop talking to trolls.
Ben
------------------------------
Date: Sun, 8 Feb 2009 20:51:27 -0800 (PST)
From: cartercc <cartercc@gmail.com>
Subject: Re: Perl vs. .NET (was: Re: Programmers (UK)...?)
Message-Id: <460de3e2-f8b3-4a36-adf0-2631293a967f@o36g2000yqh.googlegroups.com>
On Feb 7, 10:33=A0pm, Tim Greer <t...@burlyhost.com> wrote:
> No offense, but how are you qualified to judge this, let alone to teach
> it,
Being hired to develop in a language and being hired to teach it are
two very different things. When I was teaching (and I haven't taught
regularly since 2004) I was pressed into service for about a dozen
different courses, some of which I started of totally ignorant of. In
some cases, the educational administration cares more about having a
warm body in the classroom than ... well, I don't know what.
> when you're here on this group the last couple of months asking
> very basic questions and still posting with questions that result from
> you still not using what you've been taught here? =A0I'm not trying to be
> mean, and maybe you can code fine in VB or other languages, but what
> you've demonstrated about your lack of Perl knowledge doesn't really
> fairly and accurately portray what amount people could know and use,
> had they been taught by someone more qualified. =A0I'm not attacking you,
> but I find your claims of Perl comparisons without merit, based on
> these reasons.
Like most other people, I guess, I have specialized, and the three
areas that I am real good at are server-side web scripting, database
stuff, and data transformation. Outside of that I'm pretty ignorant.
The fact that I know very little about other areas (e.g., threads,
number crunching, sys admin) doesn't meant that I lack proficiency in
everything.
I don't mind admitting ignorance. A recognition of ignorance is, after
all, the first step toward curing it. And ignorance can be cured,
unlike stupidity, which can't.
CC
------------------------------
Date: Mon, 09 Feb 2009 00:06:10 -0800
From: Tim Greer <tim@burlyhost.com>
Subject: Re: Perl vs. .NET (was: Re: Programmers (UK)...?)
Message-Id: <StRjl.7487$jr7.5219@newsfe08.iad>
cartercc wrote:
> On Feb 7, 10:33Â pm, Tim Greer <t...@burlyhost.com> wrote:
>> No offense, but how are you qualified to judge this, let alone to
>> teach it,
>
> Being hired to develop in a language and being hired to teach it are
> two very different things. When I was teaching (and I haven't taught
> regularly since 2004) I was pressed into service for about a dozen
> different courses, some of which I started of totally ignorant of. In
> some cases, the educational administration cares more about having a
> warm body in the classroom than ... well, I don't know what.
>
>> when you're here on this group the last couple of months asking
>> very basic questions and still posting with questions that result
>> from you still not using what you've been taught here? Â I'm not
>> trying to be mean, and maybe you can code fine in VB or other
>> languages, but what you've demonstrated about your lack of Perl
>> knowledge doesn't really fairly and accurately portray what amount
>> people could know and use, had they been taught by someone more
>> qualified. Â I'm not attacking you, but I find your claims of Perl
>> comparisons without merit, based on these reasons.
>
> Like most other people, I guess, I have specialized, and the three
> areas that I am real good at are server-side web scripting, database
> stuff, and data transformation. Outside of that I'm pretty ignorant.
> The fact that I know very little about other areas (e.g., threads,
> number crunching, sys admin) doesn't meant that I lack proficiency in
> everything.
>
> I don't mind admitting ignorance. A recognition of ignorance is, after
> all, the first step toward curing it. And ignorance can be cured,
> unlike stupidity, which can't.
>
> CC
That is a totally fair response to my inquiry, but I reiterate that it's
difficult to make such determinations if you aren't sure yourself. If
you are more proficient at teaching VB, you will certainly observe more
progress in that language. I definitely didn't mean to insinuate that
you were lacking in any other area. I suppose I read into your
observation as a claim as the norm, but I suppose it was just the norm
in your experience (it might be prudent to provide some detail about
why that could have been, however). And, trust me, I'm certain anyone
I taught would be far less proficient in VB than Perl, simply because I
don't like VB, I don't enjoy it and I have no reason to use it (I've
not touched it in 10 or so years, as no jobs have required it).
--
Tim Greer, CEO/Founder/CTO, BurlyHost.com, Inc.
Shared Hosting, Reseller Hosting, Dedicated & Semi-Dedicated servers
and Custom Hosting. 24/7 support, 30 day guarantee, secure servers.
Industry's most experienced staff! -- Web Hosting With Muscle!
------------------------------
Date: Sun, 8 Feb 2009 21:04:49 -0800 (PST)
From: cartercc <cartercc@gmail.com>
Subject: Re: Perl vs. .NET
Message-Id: <5312f288-ff08-4482-b3d0-0158ea6e638f@t13g2000yqc.googlegroups.com>
On Feb 8, 7:59=A0am, "Dr.Ruud" <rvtol+use...@xs4all.nl> wrote:
> When I read your "can't" in your statement as "maybe shouldn't try", it
> makes a bit more sense, as being clearly just somebody's opinion of the
> moment. You were throwing with terms like "recent experience" and "it's
> true", which more often than not mean "hoax".
This was my fault for not making myself clear. In theory, you can do
anything in any language that is Turing complete. That's not what I
meant. What I meant was that you need to use a tool that is
appropriate to the task at hand. At the risk of creating a lot of
unrest among the natives on c.l.p.m., I'll offer my opinion that C is
more appropriate to use for writing an operating system than is Perl,
and that Java may be more appropriate for writing a program consisting
of thousands of KLOCS for a point of sale system than Perl.
My recent experience had to do with writing for the Microsoft C++/CLI,
and I will admit that I was dragged kicking and screaming into it, but
I didn't have a choice. My finial impression was that (1) I'm glad
that I don't have to write these kinds of things often -- hopefully
never again, and (2) Microsoft has done a good job with the CLI and I
came away impressed. Yes, it's a lot easier using some of the
Microsoft containers and template classes that to try to do the same
thing with Perl.
CC
------------------------------
Date: Mon, 09 Feb 2009 11:56:46 +0100
From: "Dr.Ruud" <rvtol+usenet@xs4all.nl>
Subject: Re: Perl vs. .NET
Message-Id: <49900bee$0$192$e4fe514c@news.xs4all.nl>
cartercc wrote:
> Java may be more appropriate for writing a program consisting
> of thousands of KLOCS for a point of sale system than Perl.
I would rather have one made in Perl. My personal experience is that for
the same presented functionality, in Perl one needs about 5% of the
number of new lines of Java.
--
Ruud
------------------------------
Date: Mon, 09 Feb 2009 14:41:51 +0000
From: RedGrittyBrick <RedGrittyBrick@spamweary.invalid>
Subject: Re: Perl vs. .NET
Message-Id: <499040b2$0$16172$db0fefd9@news.zen.co.uk>
Dr.Ruud wrote:
> cartercc wrote:
>
>> Java may be more appropriate for writing a program consisting
>> of thousands of KLOCS for a point of sale system than Perl.
>
> I would rather have one made in Perl. My personal experience is that for
> the same presented functionality, in Perl one needs about 5% of the
> number of new lines of Java.
>
That's interesting,
What was the user interface? character-mode or GUI? desktop application
or server based HTML? AJAX? - something else?
Are you comparing Java's Swing vs Tk/Perl?
P.S. This is a genuine question, please don't mistake it for something else.
--
RGB
------------------------------
Date: Sun, 08 Feb 2009 23:16:37 -0500
From: Bob Walton <bwalton@nospam.invalid>
Subject: Re: win32 perl compiling problem
Message-Id: <498fae2b$0$5082$9a6e19ea@unlimited.newshosting.com>
Thomas Steinbach wrote:
> Hello NG,
>
> I got an error if I try to compile perl with mingw (Vista)
> btw: no problems with VS2008SP1 but mingw doesn't work.
...
I don't have any ideas, but ... have you considered using the
distribution of Perl available at http://www.activestate.com with
Windows? That way, you don't need to compile your own.
> Thomas
--
Bob Walton
Email: http://bwalton.com/cgi-bin/emailbob.pl
------------------------------
Date: Mon, 9 Feb 2009 11:18:31 +0100
From: "Thomas Steinbach" <steinbach@gmx-topmail.de>
Subject: Re: win32 perl compiling problem
Message-Id: <gmp088$t9c$00$1@news.t-online.com>
Hello Bob,
>> I got an error if I try to compile perl with mingw (Vista)
>> btw: no problems with VS2008SP1 but mingw doesn't work.
> ...
>
> I don't have any ideas, but ... have you considered using the
> distribution of Perl available at http://www.activestate.com with
> Windows? That way, you don't need to compile your own.
I know this distribution. But this is not a free
distribution and I can't distribute this comercial
product. I need a "free" distribution which I can
distribute by myself and which is running from a
CD. Strawberry perl would be fine, but I don't
know how to configure it, because strawbery Perl
is not very good documented. In case of this I
started to build perl on my own. But still need
more information how to get perl running.
If somebody knows a tutorial/wiki and how to get
perl running on windows, please let me know.
Thomas
------------------------------
Date: Mon, 09 Feb 2009 03:06:56 -0800
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: win32 perl compiling problem
Message-Id: <4730p4lflfr7u57prlbdhqmto2578hnbr0@4ax.com>
"Thomas Steinbach" <steinbach@gmx-topmail.de> wrote:
>> I don't have any ideas, but ... have you considered using the
>> distribution of Perl available at http://www.activestate.com with
>> Windows? That way, you don't need to compile your own.
>
>I know this distribution. But this is not a free
>distribution
No, you are wrong. ActiveState Perl is free (free as in free of charge).
>and I can't distribute this comercial
>product.
ActiveState is offering an OEM license for that purpose.
>I need a "free" distribution which I can
>distribute by myself and which is running from a
>CD.
Why can't you simply point your customers to ActiveState.com or even
make the download and automated part of your installation?
jue
------------------------------
Date: Mon, 9 Feb 2009 03:45:14 -0800 (PST)
From: sisyphus <sisyphus359@gmail.com>
Subject: Re: win32 perl compiling problem
Message-Id: <abeb4f84-a5e7-404c-9fb4-a66c89b0ded3@o40g2000prn.googlegroups.com>
On Feb 9, 8:06=A0am, "Thomas Steinbach" <steinb...@gmx-topmail.de>
wrote:
> btw: no problems with VS2008SP1 but mingw doesn't work.
Which version of perl are you trying to build ? ... and from where did
you obtain the source ?
Also which version of gcc are you using ?
I've recently built both perl-5.10.0 and perl-5.8.9 using (the MinGW
port of) gcc-3.4.5, from official perl source code on Vista - and I
haven't struck any trouble.
Looking at http://www.nntp.perl.org/group/perl.perl5.porters/2008/01/msg133=
676.html
and
http://www.nntp.perl.org/group/perl.perl5.porters/2008/01/msg133684.html
it seems I've come across the same issue at some stage, but I can't
really recall the problem. You'll see that, in the second of those 2
posts, I've suggested that the issue can be fixed if
binutils-2.17.50-20060824-1 (or later, I presume) is installed.
Cheers,
Rob
Cheers,
Rob
------------------------------
Date: Mon, 9 Feb 2009 14:45:41 +0100
From: "Thomas Steinbach" <steinbach@gmx-topmail.de>
Subject: Re: win32 perl compiling problem
Message-Id: <gmpc6s$1bm$02$1@news.t-online.com>
Hello Juergen,
>>> I don't have any ideas, but ... have you considered using the
>>> distribution of Perl available at http://www.activestate.com with
>>> Windows? That way, you don't need to compile your own.
>>
>> I know this distribution. But this is not a free
>> distribution
>
> No, you are wrong. ActiveState Perl is free (free as in free of charge).
this means it is not freeware. Visual C++ Express is also
free of charge, but it's not freeware.
>> and I can't distribute this comercial
>> product.
>
> ActiveState is offering an OEM license for that purpose.
Alows this OEM licence to put active State perl
in a runnable style on a CD and distribute it?
And is this OEM license and the AS perl still
free of charge? Would be fine but I don't think so.
>> I need a "free" distribution which I can
>> distribute by myself and which is running from a
>> CD.
>
> Why can't you simply point your customers to ActiveState.com or even
> make the download and automated part of your installation?
if I point my users to ActiveState the perl script
won't run. The perl script(s) should run from a CD
I can't put activestate perl in a runnable verson
on my CD and distribute this CD.
That is not very helpful.
Thomas
------------------------------
Date: Mon, 9 Feb 2009 15:11:18 +0100
From: "Thomas Steinbach" <steinbach@gmx-topmail.de>
Subject: Re: win32 perl compiling problem
Message-Id: <gmpdjt$neg$00$1@news.t-online.com>
Hello Sisyphus,
>> btw: no problems with VS2008SP1 but mingw doesn't work.
> Which version of perl are you trying to build ? ... and from where did
> you obtain the source ?
> Also which version of gcc are you using ?
First I tried to build version 5.10.0 (think it's 5.10.1004)
and the source is from http://www.perl.org/ which points to
perl-5.10.0.tar.gz at http://www.cpan.org/authors/id/R/RG/RGARCIA/
Then I tried perl-5.10.0.tar.gz available at http://www.cpan.org/src/
but I think that are the same files/version.
Should I use/try an another version?
> I've recently built both perl-5.10.0 and perl-5.8.9 using (the MinGW
> port of) gcc-3.4.5, from official perl source code on Vista - and I
> haven't struck any trouble.
Which version of winapi and mingw-runtime did you use?
What else?
> Looking at
> http://www.nntp.perl.org/group/perl.perl5.porters/2008/01/msg133676.html
> and
> http://www.nntp.perl.org/group/perl.perl5.porters/2008/01/msg133684.html
> it seems I've come across the same issue at some stage, but I can't
> really recall the problem. You'll see that, in the second of those 2
> posts, I've suggested that the issue can be fixed if
> binutils-2.17.50-20060824-1 (or later, I presume) is installed.
I tried it with gcc 3.4.5 and this binutils-2.17.50-20060824-1
version of binutils. but it still doesn't compile :-(
I also tried binutils-2.17.50-20070129-1.tar.gz and
the newest version binutils-2.19.1-mingw32-bin.tar.gz
btw: w32api-3.12 and w32api-3.13, and with mingwrt-3.15.1
and mingwrt-3.15.2 but it doesn't compile.
Even gcc version 3.4.2 (binutils-2.16.91-20060119-1.tar,
winapi 3.10) doesn't compile.
The error with "generate_uudmap.exe" still comes up.
(always on a clean source tree with modified
win32/makefile.mk an this modifications:
line 56 USE_SITECUST *= define
line 215 CCHOME *= D:\download\perl\mingw3_bu_2.17.50
where my mingw is currently located.
The path ist set like:
set PATH2CC=D:\download\perl\mingw3_bu_2.17.50
set CCVER=3.4.5
set PATH=%PATH2CC%\bin;%PATH2CC%\libexec\gcc\mingw32\%CCVER%;%PATH%
dmake from http://search.cpan.org/dist/dmake/ is in the path
What else can I do and how can I "debug" this error?
Thomas
------------------------------
Date: Mon, 9 Feb 2009 15:36:43 +0100
From: "Thomas Steinbach" <steinbach@gmx-topmail.de>
Subject: Re: win32 perl compiling problem
Message-Id: <gmpfnc$br8$01$1@news.t-online.com>
Hello Sisyphus,
> Which version of perl are you trying to build ? ... and from where did
> you obtain the source ?
> Also which version of gcc are you using ?
I tried know the "latest"
version which is perl 5.8.9 but now I got an error
(segfault) with "perlglob.exe" with the current
mingw gcc 3.4.5 and bu 2.17.50_20060824 and with
the newest binutils-2.19.1 too. :-(
at the command prompt I get:
---snip---
C:\opt\bin\dmake.exe -S
..\..\..\miniperl.exe "-I..\..\..\lib" ..\bin\enc2xs -"Q" -"O" -o
byte_t.c -f byte_t.fnm
Use of uninitialized value in -f at ..\bin\enc2xs line 155.
Use of uninitialized value in concatenation (.) or string at ..\bin\enc2xs
line 156.
Use of uninitialized value in concatenation (.) or string at ..\bin\enc2xs
line 156.
Cannot open :No such file or directory at ..\bin\enc2xs line 156.
dmake: Error code 130, while making 'byte_t.c'
dmake.exe: Error code 255, while making 'subdirs'
Unsuccessful make(Encode): code=65280 at buildext.pl line 152.
dmake.exe: Error code 130, while making 'Extensions'
---snap---
btw: the copile runs on a fat32 system and no
rghts (read/write/exec) problem should come up.
I also have full access (Administrator) to the
programs at C:
Thomas
------------------------------
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 2195
***************************************