[27699] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 9128 Volume: 10

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 6 18:05:42 2006

Date: Thu, 6 Apr 2006 15:05:05 -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, 6 Apr 2006     Volume: 10 Number: 9128

Today's topics:
        [ANNOUNCE] Software tools for Perl (coverage, profiling <snail@objmedia.demon.co.uk>
    Re: Apache/PHP 5.1.2/mod_perl Solaris 10 Problem <no@email.com>
        new CPAN modules at Thu Apr  6 2006 (Randal Schwartz)
        REs Returning undef Not Being Passed to Subs <usenet@MarcDashevsky.com>
    Re: REs Returning undef Not Being Passed to Subs xhoster@gmail.com
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Thu, 6 Apr 2006 14:04:32 +0100
From: Stephen Kellett <snail@objmedia.demon.co.uk>
Subject: [ANNOUNCE] Software tools for Perl (coverage, profiling, flow tracing)
Message-Id: <4z3GLXIgHRNEFw3y@objmedia.demon.co.uk>

Software Verification has made its flow tracing, code coverage and 
performance profiling Perl software tools available for beta testing. 
Find out more at

http://www.softwareverify.com/productsPerl.html

o Perl Bug Validator is a flow tracer and tracks all function calls and 
line
visits made by your Perl script as it executes. Perl Bug Validator 
supports Perl 5 on Windows NT/2000/XP.
http://www.softwareverify.com/perlBugValidator.html

o Perl Coverage Validator is a code coverage software tool.
Perl Coverage Validator supports Perl 5 on Windows NT/2000/XP.
http://www.softwareverify.com/perlCoverageValidator.html

o Perl Performance Validator is a performance profiling software tool.
Perl Performance Validator supports Perl 5 on Windows NT/2000/XP.
http://www.softwareverify.com/perlPerformance.html

Stephen
-- 
Stephen Kellett
Object Media Limited    http://www.objmedia.demon.co.uk/software.html
Computer Consultancy, Software Development
Windows C++, Java, Assembler, Performance Analysis, Troubleshooting


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

Date: Thu, 06 Apr 2006 16:49:31 +0100
From: Brian Wakem <no@email.com>
Subject: Re: Apache/PHP 5.1.2/mod_perl Solaris 10 Problem
Message-Id: <49krkeFoup5eU1@individual.net>

Robert Jansen wrote:
> Hi,
> 
> After several days of debugging I think I figured out that perl 5.8.3 with
> a default config doesn't work properly on Solaris 10.
> 
> I installed on a Solaris 10 (doing a major upgrade from a working Solaris
> 9 similar setup ) the following:
>  Apache/1.3.34 (Unix) PHP/5.1.2 mod_perl/1.29 using the Solaris malloc
> (perl 5.8.3 configured with -Uusemyalloc (means: don't use perl's malloc)
> and the rest default)
> (All compiled with the Sunfreeware gcc 3.3.2 package and APACI for PHP and
> mod_perl)
> 
> RT 3.4.5 with RTFM-2.2.0RC2.
> 
>>From time to time one of the Apache processes simply bails out with the
> following message: "Out of memory!" (This message is perl related)


I think you need to track down what perl scripts are doing what when 
this happens, using plenty of print statements (print to a log) perhaps 
logging memory usage stats too.

I once spent hours chasing an "Out of memory!" error.  I was reading a 
very large file line by line.  Each line was only a few hundred chars 
long so I couldn't see why it was eating so much memeory.  I Eventually 
discovered that of the millions of lines in the file, 1 of them was 
almost 400 million chars long!  The machine did not have enough memory 
to fit the line into memory.

Moral of the story is - I doubt Perl is at fault.



-- 
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png


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

Date: Thu, 6 Apr 2006 14:00:34 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules at Thu Apr  6 2006
Message-Id: <IxB08y.Jr@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.

Class-DBI-Plugin-Param-0.01
http://search.cpan.org/~naoya/Class-DBI-Plugin-Param-0.01/
Adding param() method to your CDBI object.
----
HTML-Widget-1.06
http://search.cpan.org/~cfranks/HTML-Widget-1.06/
HTML Widget And Validation Framework
----
SNMP-Trapinfo-0.8.3
http://search.cpan.org/~tonvoon/SNMP-Trapinfo-0.8.3/
Reading an SNMP trap from Net-SNMP's snmptrapd
----
urpmi-4.8.18
http://search.cpan.org/~rgarcia/urpmi-4.8.18/
rpm downloader, installer and dependency solver
----
Sort-Maker-0.05
http://search.cpan.org/~uri/Sort-Maker-0.05/
A simple way to make efficient sort subs
----
Text-Hatena-0.12
http://search.cpan.org/~jkondo/Text-Hatena-0.12/
Perl extension for formatting text with Hatena Style.
----
SVG-Graph-Kit-0.00_4
http://search.cpan.org/~gene/SVG-Graph-Kit-0.00_4/
Simplified data plotting
----
RiveScript-0.19
http://search.cpan.org/~kirsle/RiveScript-0.19/
Rendering Intelligence Very Easily
----
Sledge-Plugin-DebugMessage-0.03
http://search.cpan.org/~tokuhirom/Sledge-Plugin-DebugMessage-0.03/
show the debug message
----
Attribute-Context-0.041
http://search.cpan.org/~ovid/Attribute-Context-0.041/
Perl extension for automatically altering subroutine behavior based upon context
----
ExtUtils-ModuleMaker-PBP-0.09
http://search.cpan.org/~jkeenan/ExtUtils-ModuleMaker-PBP-0.09/
Create a Perl extension in the style of Damian Conway's Perl Best Practices
----
HOP-Lexer-0.031
http://search.cpan.org/~ovid/HOP-Lexer-0.031/
"Higher Order Perl" Lexer
----
ExtUtils-ModuleMaker-0.45
http://search.cpan.org/~jkeenan/ExtUtils-ModuleMaker-0.45/
Better than h2xs for creating modules
----
AI-Prolog-0.734
http://search.cpan.org/~ovid/AI-Prolog-0.734/
Perl extension for logic programming.
----
XML-Dumper-0.81
http://search.cpan.org/~mikewong/XML-Dumper-0.81/
Perl module for dumping Perl objects from/to XML
----
TiVo-1.3.1
http://search.cpan.org/~sschneid/TiVo-1.3.1/
a Perl interface to the TiVo Calypso protocol
----
DBD-Pg-1.48
http://search.cpan.org/~dbdpg/DBD-Pg-1.48/
PostgreSQL database driver for the DBI module
----
Mail-Webmail-Gmail-1.07
http://search.cpan.org/~mincus/Mail-Webmail-Gmail-1.07/
An interface to Google's webmail service
----
Parallel-Forker-1.202
http://search.cpan.org/~wsnyder/Parallel-Forker-1.202/
Parallel job forking and management
----
Mail-Webmail-Gmail-1.06.1
http://search.cpan.org/~mincus/Mail-Webmail-Gmail-1.06.1/
An interface to Google's webmail service
----
Rose-DateTime-0.521
http://search.cpan.org/~jsiracusa/Rose-DateTime-0.521/
DateTime helper functions and objects.
----
Email-Filter-SpamAssassin-v0.0.1
http://search.cpan.org/~uvoelker/Email-Filter-SpamAssassin-v0.0.1/
integrate Mail::SpamAssassin in Email::Filter
----
Rose-DB-Object-0.701
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.701/
Extensible, high performance RDBMS-OO mapper.
----
sqlpp-0.03
http://search.cpan.org/~karasik/sqlpp-0.03/
SQL preprocessor
----
Text-Hatena-0.11
http://search.cpan.org/~jkondo/Text-Hatena-0.11/
Perl extension for formatting text with Hatena Style.
----
FEAR-API-0.480.2
http://search.cpan.org/~xern/FEAR-API-0.480.2/
There's no fear with this elegant site scraper
----
Net-Amazon-0.35
http://search.cpan.org/~mschilli/Net-Amazon-0.35/
Framework for accessing amazon.com via SOAP and XML/HTTP
----
Rose-DB-0.671
http://search.cpan.org/~jsiracusa/Rose-DB-0.671/
A DBI wrapper and abstraction layer.
----
Parse-RecDescent-FAQ-5.00
http://search.cpan.org/~tbone/Parse-RecDescent-FAQ-5.00/
the official, authorized FAQ for Parse::RecDescent.
----
CGI-Session-ExpireSessions-1.06
http://search.cpan.org/~rsavage/CGI-Session-ExpireSessions-1.06/
Delete expired CGI::Session db-based and file-based sessions
----
SVN-Notify-2.56
http://search.cpan.org/~dwheeler/SVN-Notify-2.56/
Subversion activity notification
----
DBIx-HTML-PopupRadio-1.13
http://search.cpan.org/~rsavage/DBIx-HTML-PopupRadio-1.13/
Convert sql into a popup menu or radio group.
----
WWW-Mechanize-Pluggable-1.00
http://search.cpan.org/~mcmahon/WWW-Mechanize-Pluggable-1.00/
custmomizable via plugins
----
Net-ICQ-On-1.10.5
http://search.cpan.org/~jeromemck/Net-ICQ-On-1.10.5/
ICQ Online Tester
----
Business-PayPal-API-0.23
http://search.cpan.org/~scottw/Business-PayPal-API-0.23/
PayPal API
----
RiveScript-0.18
http://search.cpan.org/~kirsle/RiveScript-0.18/
Rendering Intelligence Very Easily
----
RiveScript-0.17
http://search.cpan.org/~kirsle/RiveScript-0.17/
Rendering Intelligence Very Easily
----
Net-Amazon-S3-0.31
http://search.cpan.org/~lbrocard/Net-Amazon-S3-0.31/
Use the Amazon S3 - Simple Storage Service
----
RTx-RightsMatrix-0.03.00
http://search.cpan.org/~htchapman/RTx-RightsMatrix-0.03.00/
Bulk editing GUI for RT rights
----
Rose-DB-Object-0.70
http://search.cpan.org/~jsiracusa/Rose-DB-Object-0.70/
Extensible, high performance RDBMS-OO mapper.
----
Math-Prime-XS-0.17
http://search.cpan.org/~schubiger/Math-Prime-XS-0.17/
Calculate/detect prime numbers with deterministic tests
----
Rose-DB-0.67
http://search.cpan.org/~jsiracusa/Rose-DB-0.67/
A DBI wrapper and abstraction layer.
----
threads-1.21
http://search.cpan.org/~jdhedden/threads-1.21/
Perl interpreter-based threads
----
Rose-DateTime-0.52
http://search.cpan.org/~jsiracusa/Rose-DateTime-0.52/
DateTime helper functions and objects.
----
Catalyst-Plugin-Message-0.02
http://search.cpan.org/~chunzi/Catalyst-Plugin-Message-0.02/
The great new Catalyst::Plugin::Message!
----
Log-Funlog-0.85_1
http://search.cpan.org/~korsani/Log-Funlog-0.85_1/
Log module with fun inside!
----
WWW-Blog-Metadata-Yadis-0.03
http://search.cpan.org/~kokogiko/WWW-Blog-Metadata-Yadis-0.03/
Extract Yadis Resourse Descriptor URL from HTML header
----
Log-Funlog-0.85
http://search.cpan.org/~korsani/Log-Funlog-0.85/
Log module with fun inside!
----
EekBoek-0.55
http://search.cpan.org/~jv/EekBoek-0.55/
Bookkeeping software for small and medium-size businesses


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: Thu, 6 Apr 2006 13:26:36 -0400
From: Marc Dashevsky <usenet@MarcDashevsky.com>
Subject: REs Returning undef Not Being Passed to Subs
Message-Id: <MPG.1e9f1959abb48d7698996e@news.supernews.com>

A bug in some code has shown me that using the results of a regular
expression as an argument to a sub will not pass a value if that value
is undef.  The argument is simply omitted, and subsequent arguments
shift over accordingly.

Here are two cases, case 1 being the one demonstrating the above
problem, and case 2 demonstrating a work-around.  Even though I have
this work-around, I'd like to understand what is happening in case 1.

Would someone explain it?

    # Activestate build 813 (perl v5.8.7)
    use strict;
    my $v;

    # CASE 1: This passes only one argument to a().
    a($v =~ /^(x|y)$/I, 999);

    # CASE 2: This passes two arguments to a(), just as I would have
    # expected the first case to do.
    my $l = ($v =~ /^(x|y)$/I);
    a($l, 999);

    sub a {
        my($a, $b) = @_;
        print "<$a> <$b>\n";
    }
    __END__

-- 
  Go to http://MarcDashevsky.com to send me e-mail.


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

Date: 06 Apr 2006 20:18:58 GMT
From: xhoster@gmail.com
Subject: Re: REs Returning undef Not Being Passed to Subs
Message-Id: <20060406162945.632$AG@newsreader.com>

Marc Dashevsky <usenet@MarcDashevsky.com> wrote:
> A bug in some code has shown me that using the results of a regular
> expression as an argument to a sub will not pass a value if that value
> is undef.  The argument is simply omitted, and subsequent arguments
> shift over accordingly.
>
> Here are two cases, case 1 being the one demonstrating the above
> problem, and case 2 demonstrating a work-around.  Even though I have
> this work-around, I'd like to understand what is happening in case 1.
>
> Would someone explain it?
>
>     # Activestate build 813 (perl v5.8.7)
>     use strict;
>     my $v;
>
>     # CASE 1: This passes only one argument to a().
>     a($v =~ /^(x|y)$/I, 999);
>
>     # CASE 2: This passes two arguments to a(), just as I would have
>     # expected the first case to do.
>     my $l = ($v =~ /^(x|y)$/I);
>     a($l, 999);

Paul has explained why.  I would just like to point out that you can get
the second behavior without using a temp variable by doing:

a(scalar $v =~ /^(x|y)$/i,  999);


Xho

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service                        $9.95/Month 30GB


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

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


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