[27733] in Perl-Users-Digest
Perl-Users Digest, Issue: 9133 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Apr 8 18:06:03 2006
Date: Sat, 8 Apr 2006 15:05: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 Sat, 8 Apr 2006 Volume: 10 Number: 9133
Today's topics:
ANNOUNCE: Embperl 2.2.0 <richter@ecos.de>
Re: fork and taint <no@thanks.com>
Re: fork and taint <noreply@gunnar.cc>
Re: fork and taint <no@thanks.com>
new CPAN modules at Sat Apr 8 2006 (Randal Schwartz)
Re: Tie::File question <uri@stemsystems.com>
Re: XS progamming question (Anno Siegel)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 8 Apr 2006 15:08:29 GMT
From: "Gerald Richter" <richter@ecos.de>
Subject: ANNOUNCE: Embperl 2.2.0
Message-Id: <IxEuBu.18IH@zorch.sf-bay.org>
The URL
ftp://ftp.dev.ecos.de/pub/perl/embperl/Embperl-2.2.0.tar.gz
has entered CPAN as
file: $CPAN/authors/id/G/GR/GRICHTER/Embperl-2.2.0.tar.gz
size: 667232 bytes
md5: c1e25850a810b2044fe933e99478c2d9
Beside some small fixes, this release adds support for Apache 2.2 and a dump
meta command which simplifies debugging.
---
Embperl is a system for building dynamic websites with Perl.
It gives you the power to embed Perl code in your HTML/XML documents and the
ability to build your Web site out of small reusable objects in an
object-oriented style.
Embperl has several features which are especially useful for creating
Websites, including dynamic tables, form field processing, URL
escaping/unescaping, session handling, caching, xslt transformation and
more.
See http://perl.apache.org/embperl/ (english) or http://www.ecos.de/embperl/
(german) for more information.
Enjoy
Gerald
Changes since 2.1.0:
- Added new command [$ dump $] which can be used
to dump variables to logfiles or to the output
for debugging purpose.
- [$ sub $] return value is handled now corretly
in scalar and array context
- Added support for Apache 2.2
- Added Table of Content pod file, which lists
all available Embperl documentation, to get
a better overview. Thanks to Axel Beckert.
- Fixed Cookie expire calculation, because
relative exipre times where only calculated
once at server startup. Spotted by Derrick Spell.
- Fixed parsing of Cache configuration functions in
httpd.conf. Spotted by Carl Eklof.
- Added better handling of Out Of Memory condition,
i.e. log error end try to clean up instead of
segfault.
- Fixed segfault that could occur because a non
string value is passed as string index, which
crashed if such a string index doesn't exists.
Spotted by Carl Eklof.
---------------------------------------------------------------------------
Gerald Richter ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter@ecos.de Voice: +49 6133 939-122
WWW: http://www.ecos.de/ Fax: +49 6133 939-333
---------------------------------------------------------------------------
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------
** Virus checked by BB-5000 Mailfilter **
------------------------------
Date: Sat, 8 Apr 2006 20:37:32 +0200
From: Asterbing <no@thanks.com>
Subject: Re: fork and taint
Message-Id: <MPG.1ea2215a370b2ac29897dc@news.tiscali.fr>
In article <49ijljFp2fdjU1@individual.net>, noreply@gunnar.cc says...
>
> Have you considered to ask Perl for help?
>
> use strict;
> use warnings;
> use CGI::Carp 'fatalsToBrowser';
>
Yes, I've done it and not any explicit error message is shown. Here is
the last script test I've used and it crashes the same way.
I only get the "before fork ok" in browser and perl.exe crashes, nothing
more. The only more thing I know, debugging the crash using Visual
Studio is that the exception occurs in PERL58.DLL.
#!/usr/bin/perl -T
use strict;
use warnings;
use CGI::Carp qw/fatalsToBrowser/;
print "Content-type: text/html\n\n";
print "before fork ok<br>";
my $pid = fork();
die "fork: $!\n" unless defined $pid;
if (!$pid){
print "son ok<br>";
exit 0;}
print "daddy ok<br>";
exit 0;
------------------------------
Date: Sat, 08 Apr 2006 22:12:45 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: fork and taint
Message-Id: <49qjpvFq2ftaU1@individual.net>
Asterbing wrote:
> In article <49ijljFp2fdjU1@individual.net>, noreply@gunnar.cc says...
>>
>>Have you considered to ask Perl for help?
>>
>> use strict;
>> use warnings;
>> use CGI::Carp 'fatalsToBrowser';
>
> Yes, I've done it and not any explicit error message is shown. Here is
> the last script test I've used and it crashes the same way.
>
> I only get the "before fork ok" in browser and perl.exe crashes, nothing
> more. The only more thing I know, debugging the crash using Visual
> Studio is that the exception occurs in PERL58.DLL.
>
> #!/usr/bin/perl -T
> use strict;
> use warnings;
> use CGI::Carp qw/fatalsToBrowser/;
> print "Content-type: text/html\n\n";
> print "before fork ok<br>";
> my $pid = fork();
> die "fork: $!\n" unless defined $pid;
> if (!$pid){
> print "son ok<br>";
> exit 0;}
> print "daddy ok<br>";
> exit 0;
That script runs fine with my IndigoPerl build of Perl (5.8.6).
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: Sat, 8 Apr 2006 23:05:02 +0200
From: Asterbing <no@thanks.com>
Subject: Re: fork and taint
Message-Id: <MPG.1ea243ecd65a90ec9897dd@news.tiscali.fr>
In article <49qjpvFq2ftaU1@individual.net>, noreply@gunnar.cc says...
> That script runs fine with my IndigoPerl build of Perl (5.8.6).
>
Well, on my side, I'm using ActivePerl 5.8.7 build 815 and this script
works fine if not in taint mode only :-(
------------------------------
Date: Sat, 8 Apr 2006 04:42:03 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules at Sat Apr 8 2006
Message-Id: <IxDzq3.3L8@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.
Net-Yadis-Discovery-0.04
http://search.cpan.org/~kokogiko/Net-Yadis-Discovery-0.04/
Perl extension for discovering Yadis document from Yadis URL
----
threads-1.22
http://search.cpan.org/~jdhedden/threads-1.22/
Perl interpreter-based threads
----
Error-0.15008
http://search.cpan.org/~shlomif/Error-0.15008/
Error/exception handling in an OO-ish way
----
extproc_perl-2.50
http://search.cpan.org/~jhorwitz/extproc_perl-2.50/
----
ASNMTAP-3.000.007
http://search.cpan.org/~asnmtap/ASNMTAP-3.000.007/
----
File-TinyLock-0.11
http://search.cpan.org/~jkister/File-TinyLock-0.11/
Utility to lock and unlock files.
----
File-TinyLock-0.10
http://search.cpan.org/~jkister/File-TinyLock-0.10/
----
Error-0.15007
http://search.cpan.org/~shlomif/Error-0.15007/
Error/exception handling in an OO-ish way
----
Error-0.15006
http://search.cpan.org/~shlomif/Error-0.15006/
Error/exception handling in an OO-ish way
----
Gantry-3.25
http://search.cpan.org/~tkeefer/Gantry-3.25/
Web application framework for mod_perl, cgi, etc.
----
Tie-File-AsHash-0.08
http://search.cpan.org/~cangell/Tie-File-AsHash-0.08/
Like Tie::File but access lines using a hash instead of an array
----
autoclass_v1_01
http://search.cpan.org/~ccavnor/autoclass_v1_01/
----
Inline-Java-0.50_93
http://search.cpan.org/~patl/Inline-Java-0.50_93/
Write Perl classes in Java.
----
Grid-Transform-0.02
http://search.cpan.org/~gray/Grid-Transform-0.02/
fast grid transformations
----
HTTP-Size-0.94
http://search.cpan.org/~bdfoy/HTTP-Size-0.94/
Get the byte size of an internet resource
----
Catalyst-Plugin-Session-Store-DBI-0.07
http://search.cpan.org/~agrundma/Catalyst-Plugin-Session-Store-DBI-0.07/
Store your sessions in a database
----
Crypt-MatrixSSL-1.8
http://search.cpan.org/~cdrake/Crypt-MatrixSSL-1.8/
Perl extension for SSL and TLS using MatrixSSL.org
----
Attribute-Memoize-0.01
http://search.cpan.org/~dankogai/Attribute-Memoize-0.01/
Memoize your sub via attribute
----
CAM-SOAPClient-1.17
http://search.cpan.org/~clotho/CAM-SOAPClient-1.17/
SOAP interaction tools
----
CGI-Session-4.12
http://search.cpan.org/~markstos/CGI-Session-4.12/
persistent session data in CGI applications
----
XML-SAX-ExpatXS-1.20
http://search.cpan.org/~pcimprich/XML-SAX-ExpatXS-1.20/
Perl SAX 2 XS extension to Expat parser
----
Class-Autouse-1.25
http://search.cpan.org/~adamk/Class-Autouse-1.25/
Run-time load a class the first time you call a method in it.
----
XML-Validate-1.024
http://search.cpan.org/~bbc/XML-Validate-1.024/
an XML validator factory
----
Cache-AgainstFile-1.015
http://search.cpan.org/~bbc/Cache-AgainstFile-1.015/
Cache data structures parsed from files, watching for updates to the file
----
XML-Validate-1.023
http://search.cpan.org/~bbc/XML-Validate-1.023/
an XML validator factory
----
Samba-LDAP-0.03
http://search.cpan.org/~ghenry/Samba-LDAP-0.03/
Manage a Samba PDC with an LDAP Backend
----
File-Lock-0.10
http://search.cpan.org/~jkister/File-Lock-0.10/
Utility to lock and unlock files.
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.
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: Fri, 07 Apr 2006 21:56:27 -0400
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Tie::File question
Message-Id: <x7acaw3k50.fsf@mail.sysarch.com>
>>>>> "r" == robic0 <robic0> writes:
r> Read through the docs on this module.
r> My question is about contraction and expansion of the file.
r> It is stated that the entire file is not read into memory
r> and I can understand that. Its also stated that changes made
r> to the record array happen instantaneous to the file.
r> To adjust the file is it using a file realloc primitive or
r> am I missing something? I understand mild buffereing is done.
r> Is it a file realloc acting on the fat or am I missing something.
r> If so it must be an api, its not adjusting fat, like from a driver...
yes, you are misunderstanding many things.
go figure it out for yourself. i will watch the accident in progress.
your asking for help here is so full of chutzpah.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: 8 Apr 2006 11:07:02 GMT
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: XS progamming question
Message-Id: <49pjqmFq0f8lU1@news.dfncis.de>
Ilya Zakharevich <nospam-abuse@ilyaz.org> wrote in comp.lang.perl.misc:
> [A complimentary Cc of this posting was sent to
> Anno Siegel
> <anno4000@lublin.zrz.tu-berlin.de>], who wrote in article
> <49nipaFplep1U1@news.dfncis.de>:
> > > But what do you mean with "symref"? I thought "*x" means "the
> > > glob of the variable x".
>
> ("with the name `x'")
>
> > That's true if x is a valid Perl identifier (a variable name without
> > the sigil $, %, ..., * in our case), which "3" isn't.
>
> "3" is. Witness $3, @3, %3, *3 etc.
>
> perl -wle '%5 = (fpp => 23); *3 = \%5; print $3{fpp}'
That is really a matter of terminology. With most computer languages
an identifier is something that starts with a non-digit. I prefer that
view for Perl too, while $3, @3, etc. are exceptional variables whose
names are *not* identifiers.
Anno
--
If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers.
------------------------------
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 9133
***************************************