[31217] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 2462 Volume: 11

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jun 6 21:09:42 2009

Date: Sat, 6 Jun 2009 18:09:07 -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, 6 Jun 2009     Volume: 11 Number: 2462

Today's topics:
    Re: FAQ 2.2 How can I get a binary version of perl? <rabbits77@my-deja.com>
        new CPAN modules on Sat Jun  6 2009 (Randal Schwartz)
    Re: perl-quote.el v.1 <nospam-abuse@ilyaz.org>
    Re: Science Module <benkasminbullock@gmail.com>
        Simple array iteration not working? brian.haines@gmail.com
    Re: Simple array iteration not working? <someone@example.com>
    Re: Simple array iteration not working? <ben@morrow.me.uk>
    Re: Simple array iteration not working? brian.haines@gmail.com
    Re: What happened to perl doc <benkasminbullock@gmail.com>
        Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)

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

Date: Fri, 05 Jun 2009 17:00:24 -0400
From: rabbits77 <rabbits77@my-deja.com>
Subject: Re: FAQ 2.2 How can I get a binary version of perl?
Message-Id: <4e2da$4a298740$c650990a$715@news.eurofeeds.com>

Jim Gibson wrote:
[snip]
> What about IndigoPerl for Windows? I haven't used it, but some people
> here recommend it.
> 
> <http://www.indigostar.com/indigoperl.htm>
> 
> They also offer a free, bundled version of Perl, Apache (with
> mod_perl), MySQL, and PHP:
> 
> <http://www.indigostar.com/indigoampp.html>
> 
> Seems like worth a mention.
I agree. IndigoPerl should be added to the FAQ!


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

Date: Sat, 6 Jun 2009 04:42:29 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Sat Jun  6 2009
Message-Id: <KKsvqt.1A9E@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.

Acme-CPANAuthors-Norwegian-0.14
http://search.cpan.org/~sharifuln/Acme-CPANAuthors-Norwegian-0.14/
We are Norwegian CPAN authors 
----
Acme-CPANAuthors-Ukrainian-0.13
http://search.cpan.org/~sharifuln/Acme-CPANAuthors-Ukrainian-0.13/
We are Ukrainian CPAN authors 
----
App-ForExample-0.021
http://search.cpan.org/~rkrimen/App-ForExample-0.021/
A guide through Catalyst, Apache, lighttpd, nginx, monit, ..., configuration hell 
----
App-ForExample-0.022
http://search.cpan.org/~rkrimen/App-ForExample-0.022/
A guide through Catalyst, Apache, lighttpd, nginx, monit, ..., configuration hell 
----
App-GitHub-FindRepository-0.06
http://search.cpan.org/~rkrimen/App-GitHub-FindRepository-0.06/
Determine the right case for a GitHub repository 
----
App-GitHub-FixRepositoryName-0.02
http://search.cpan.org/~rkrimen/App-GitHub-FixRepositoryName-0.02/
Fix your .git/config after a repository-name case change 
----
Audio-Scan-0.17
http://search.cpan.org/~agrundma/Audio-Scan-0.17/
XS parser for MP3, MP4, Ogg Vorbis, FLAC, ASF, WAV, AIFF, Musepack, Monkey's Audio 
----
Audio-Scan-0.18
http://search.cpan.org/~agrundma/Audio-Scan-0.18/
XS parser for MP3, MP4, Ogg Vorbis, FLAC, ASF, WAV, AIFF, Musepack, Monkey's Audio 
----
CGI-Application-Plugin-ValidateQuery-0.99_2
http://search.cpan.org/~natek/CGI-Application-Plugin-ValidateQuery-0.99_2/
lightweight query validation for CGI::Application 
----
CPAN-Reporter-Smoker-0.19
http://search.cpan.org/~dagolden/CPAN-Reporter-Smoker-0.19/
Turnkey CPAN Testers smoking 
----
CSS-Moonfall-0.04
http://search.cpan.org/~sartak/CSS-Moonfall-0.04/
port of Lua's Moonfall for dynamic CSS generation 
----
Catalyst-Controller-MetaForm-0.01_02
http://search.cpan.org/~berle/Catalyst-Controller-MetaForm-0.01_02/
MetaForm sugar for Catalyst 
----
Coat-Persistent-0.104
http://search.cpan.org/~sukria/Coat-Persistent-0.104/
Simple Object-Relational mapping for Coat objects 
----
Devel-Declare-0.005005
http://search.cpan.org/~flora/Devel-Declare-0.005005/
Adding keywords to perl, in perl 
----
Devel-TraceLoad-1.02
http://search.cpan.org/~andya/Devel-TraceLoad-1.02/
Discover which modules a Perl program loads. 
----
Dist-Zilla-PluginBundle-RJBS-0.091560
http://search.cpan.org/~rjbs/Dist-Zilla-PluginBundle-RJBS-0.091560/
BeLike::RJBS when you build your dists 
----
Email-Sender-0.091560_001
http://search.cpan.org/~rjbs/Email-Sender-0.091560_001/
a library for sending email 
----
File-List-Object-0.185
http://search.cpan.org/~csjewell/File-List-Object-0.185/
Object containing a list of files (filelist, packlist). 
----
File-Spotlight-0.04
http://search.cpan.org/~miyagawa/File-Spotlight-0.04/
List files from Smart Folder by reading .savedSearch files 
----
Games-Mastermind-Cracker-0.03
http://search.cpan.org/~sartak/Games-Mastermind-Cracker-0.03/
quickly crack Mastermind 
----
Getopt-Chain-0.016
http://search.cpan.org/~rkrimen/Getopt-Chain-0.016/
Command-line processing like svn and git 
----
Language-Befunge-Debugger-0.3.6
http://search.cpan.org/~jquelin/Language-Befunge-Debugger-0.3.6/
a graphical debugger for Language::Befunge 
----
Lingua-Abbreviate-Hierarchy-0.04
http://search.cpan.org/~andya/Lingua-Abbreviate-Hierarchy-0.04/
Shorten verbose namespaces 
----
Log-Handler-0.55_01
http://search.cpan.org/~bloonix/Log-Handler-0.55_01/
Log messages to several outputs. 
----
Muldis-D-0.76.1
http://search.cpan.org/~duncand/Muldis-D-0.76.1/
Formal spec of Muldis D relational DBMS lang 
----
Mysql-Query-Parser-0.00001_00
http://search.cpan.org/~yamakura/Mysql-Query-Parser-0.00001_00/
The module which parse MYSQL query string. 
----
Nagios-Plugin-0.33
http://search.cpan.org/~tonvoon/Nagios-Plugin-0.33/
A family of perl modules to streamline writing Nagios plugins 
----
Net-IMAP-Simple-1.1800
http://search.cpan.org/~jettero/Net-IMAP-Simple-1.1800/
Perl extension for simple IMAP account handling. 
----
NetHack-PriceID-0.04
http://search.cpan.org/~sartak/NetHack-PriceID-0.04/
identify NetHack items using shopkeepers 
----
PDF-Report-1.31
http://search.cpan.org/~aorr/PDF-Report-1.31/
A wrapper written for PDF::API2 
----
POE-Component-Schedule-0.01
http://search.cpan.org/~dolmen/POE-Component-Schedule-0.01/
Schedule POE events using DateTime::Set iterators 
----
POE-Component-SmokeBox-Uploads-RSS-1.00
http://search.cpan.org/~bingos/POE-Component-SmokeBox-Uploads-RSS-1.00/
Obtain uploaded CPAN modules via RSS. 
----
Pod-L10N-0.04
http://search.cpan.org/~argrath/Pod-L10N-0.04/
----
StoredHash-0.028
http://search.cpan.org/~ohollmen/StoredHash-0.028/
Minimalistic, yet fairly complete DBI Persister 
----
Syntax-Highlight-Universal-0.5
http://search.cpan.org/~mishoo/Syntax-Highlight-Universal-0.5/
Syntax highlighting module based on the Colorer library 
----
Sys-Statistics-Linux-0.52
http://search.cpan.org/~bloonix/Sys-Statistics-Linux-0.52/
Front-end module to collect system statistics 
----
Term-TtyRec-Plus-0.07
http://search.cpan.org/~sartak/Term-TtyRec-Plus-0.07/
read a ttyrec 
----
Term-VT102-ZeroBased-1.02
http://search.cpan.org/~sartak/Term-VT102-ZeroBased-1.02/
Term::VT102 but with zero-based indices 
----
Test-Weaken-2.003_000
http://search.cpan.org/~jkegl/Test-Weaken-2.003_000/
Test that freed memory objects were, indeed, freed 
----
Tie-Scalar-Random-0.02
http://search.cpan.org/~sartak/Tie-Scalar-Random-0.02/
fetch a randomly selected assigned value 
----
UR-Bundle-0.4
http://search.cpan.org/~sakoht/UR-Bundle-0.4/
----
ZM-Session-0.2.1
http://search.cpan.org/~maxico/ZM-Session-0.2.1/
sessions manager for CGI 
----
ZM-Template-0.6.4
http://search.cpan.org/~maxico/ZM-Template-0.6.4/
Merges runtime data with static HTML or Plain Text template file. 
----
jmx4perl-0.15
http://search.cpan.org/~roland/jmx4perl-0.15/
JMX acccess tool 
----
jmx4perl-0.16
http://search.cpan.org/~roland/jmx4perl-0.16/
JMX acccess tool 


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: Sat, 06 Jun 2009 21:50:35 GMT
From: Ilya Zakharevich <nospam-abuse@ilyaz.org>
Subject: Re: perl-quote.el v.1
Message-Id: <slrnh2lp5b.4gm.nospam-abuse@chorin.math.berkeley.edu>

On 2009-06-05, Kevin Ryde <user42@zip.com.au> wrote:

>   "Convert a Perl \"\" double-quoted string to '' single-quotes.

I would find the opposite conversion more often useful...

 ...
>     __\"\"   ->  __('')
>     N__\"\"  ->  N__('')

> Parens are added for __ and N__ because __'' doesn't work, a
> quote there is the old-style package name separator, it must be
> __('').

Do not know: would not SPACE (instead of parens) be a better alternative?

> Control characters in your sources probably aren't a great idea,
> but at least it gives a conversion.  However remember Emacs will
> in fact save a newline in the buffer as CRLF or CR under DOS or
> Mac coding systems.

I think this should not be relevant (unless with very old version of Perl...)

Thanks,
Ilya


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

Date: 06 Jun 2009 04:22:14 GMT
From: Ben Bullock <benkasminbullock@gmail.com>
Subject: Re: Science Module
Message-Id: <4a29eef5$0$867$c5fe31e7@read01.usenet4all.se>

On Wed, 03 Jun 2009 10:36:58 -0400, Charlton Wilbur wrote:

>>>>>> "EDG" == E D G <edgrsprj@ix.netcom.com> writes:
> 
>     EDG> Many of the scientists that I am working with don't know EDG>
>     anything about programming in general.  That means that they EDG>
>     don't know what is possible and what is not possible with any EDG>
>     computer programs.
> 
> None of the scientists I have ever known were born knowing how to use an
> electron microscope or a gas chromatograph, or how to solve differential
> equations or diagram organic chemicals.  If the tool is useful to their
> research, they can learn to use it.

The amount of learning involved is very big, and not every scientist is 
good at computer programming.

> Perl is far simpler to use than an oscilloscope, and has the advantage
> of being freely available for anyone who has a computer.

Sorry but Perl is a lot more complicated than an average oscilloscope.

>     EDG> If you can get past the lack of necessary documentation for
>     EDG> beginner and intermediate level programmers such as myself,
> 
> _Elements of Programming with Perl_
> _Learning Perl_
> _Beginning Perl_
> _Programming Perl_
> _Perl Best Practices_
> _Higher-Order Perl_
> 
> What more do you need?  What problems do you have with these books? 

I have a problem with "Programming Perl" - actually I hate it.

> If
> you just go on about "the lack of necessary documentation" -- well,
> there's a couple thousand pages of good, useful documentation in those
> six books

Most scientists are already busy with other things.

>, and together they cover all the necessary parts of using
> Perl.  If you aren't using them, use them, and your problem is solved;
> if you are using them, and find them inadequate, explain what you find
> inadequate about them instead of just complaining in the vaguest of
> terms about "the lack of necessary documentation."

It sounds like you are giving orders.

> The problem you have consistently, that I've noticed more than once in
> your postings here, is that you cannot isolate the problem you are
> having, and in particular you cannot separate relevant information from
> irrelevant information.  As a classic example, you come here with a
> problem about wanting to read key input immediately on Windows, and you
> preface your actual question with a dissertation about the people who
> are working on the project and how vitally important it is.  Not only is
> this completely irrelevant to the problem you're trying to solve, it's
> also likely to make the people who would otherwise help you skip over
> the post because you can't get to the point in the first paragraph.

But he did get an answer.

> Further, you make it almost impossible to constructively help you.
> http://catb.org/esr/faqs/smart-questions.html -- "How to Ask Questions
> the Smart Way" -- is a document you should read over and over again and
> internalize.  In particular, the sections entitled "Be precise and
> informative about your problem" and "Be explicit about your problem."

Sorry but I'll never be able to take anything written by Eric Raymond 
seriously after reading his blog. In fact whatever he says I'd be tempted 
to suggest doing the opposite.

> A perfect example of you asking poor questions: you asked about how to
> read a key from the keyboard.  In the process of someone answering the
> question, it turned out that you had not read the FAQ questions on the
> matter, and that you actually knew about Win32::ReadKey but failed to
> mention that in your question.  Reading the FAQ would have helped you
> write a better question, if nothing else, and asking a specific question
> about Win32::ReadKey would have helped you get a useful answer. Instead,
> people are forced to play 20 Questions with you, and that gets old fast.

But you have kept on writing quite a bit now, so perhaps you are enjoying 
this interaction with E.D.G. more than you care to admit.

>     EDG> The reason entire groups of science researchers are not using
>     EDG> it is probably because of those documentation problems.
> 
> What documentation problems?  Be specific.

"perldoc perlre".

"perldoc CGI".

The perlre documentation actually got worse going from Perl 5.8 to 5.10. 
Sad but true. A bit like the Apache documentation, which got worse going 
from 1.3 to 2.2. Who was it who raised the suspicions about people trying 
to sell books by deliberately writing bad documentation?
 
> (And someone who doesn't read the FAQ before asking a question really
> doesn't have much standing to criticize the documentation he doesn't
> use.)
> 
>     EDG> It is my guess that one of the reasons I am having problems
>     EDG> getting information regarding Perl code is that many of the
>     EDG> people posting to this Newsgroup are using it with UNIX or EDG>
>     Linux and not Windows.
> 
> No.  The reasons you are having problems getting information is because
> you do not seem able or willing to do your own research and to ask your
> questions in a way that they are easy to answer.  The second or third
> time someone needs to play 20 Questions with you, investing a couple of
> hours responding to you *just to find out what the problem really is*,
> he or she decides that it's not worth that much effort to help someone
> who apparently doesn't want to be helped enough to frame the question
> intelligently.

But it is worth the effort to write 200 or so lines complaining about the 
whole thing? That doesn't add up.



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

Date: Sat, 6 Jun 2009 12:00:54 -0700 (PDT)
From: brian.haines@gmail.com
Subject: Simple array iteration not working?
Message-Id: <264767b6-b925-463a-86f4-e52e1aa145c8@s16g2000vbp.googlegroups.com>

This code:

	my @sref = @{$softwareListRef};
	print Dumper(@sref);

	for (my $i = 0; $i<@sref ; $i++) {
		my $sn = $sref[$i];
		print Dumper($sn);

Generates this output:

$VAR1 = [
          'autoTestSoftware001',
          'autoTestSoftware050'
        ];
$VAR1 = [
          'autoTestSoftware001',
          'autoTestSoftware050'
        ];

Note that the array @sref is properly de-referenced and printed. Then,
inexplicably, the array item is selected by index and when printed, is
equal to the original array. Foreach does the same thing. What's going
on?


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

Date: Sat, 06 Jun 2009 12:38:52 -0700
From: "John W. Krahn" <someone@example.com>
Subject: Re: Simple array iteration not working?
Message-Id: <hBzWl.30455$Mf7.18755@newsfe16.iad>

brian.haines@gmail.com wrote:
> This code:
> 
> 	my @sref = @{$softwareListRef};
> 	print Dumper(@sref);
> 
> 	for (my $i = 0; $i<@sref ; $i++) {
> 		my $sn = $sref[$i];
> 		print Dumper($sn);
> 
> Generates this output:
> 
> $VAR1 = [
>           'autoTestSoftware001',
>           'autoTestSoftware050'
>         ];
> $VAR1 = [
>           'autoTestSoftware001',
>           'autoTestSoftware050'
>         ];
> 
> Note that the array @sref is properly de-referenced

@sref is not dereferenced in your example.  And you can't dereferenced 
an array, only a scalar.  In your example $softwareListRef is dereferenced.


> and printed. Then,
> inexplicably, the array item is selected by index and when printed, is
> equal to the original array. Foreach does the same thing. What's going
> on?



John
-- 
Those people who think they know everything are a great
annoyance to those of us who do.        -- Isaac Asimov


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

Date: Sat, 6 Jun 2009 21:07:03 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: Simple array iteration not working?
Message-Id: <7suqf6-bd41.ln1@osiris.mauzo.dyndns.org>


Quoth brian.haines@gmail.com:
> This code:
> 

I am assuming you have

    use Data::Dumper;

    my $softwareListRef = [
        'autoTestSoftware001',
        'autoTestSoftware050'
    ];

here. Please post *complete* programs we can all run.

(Also, it's not a 'List' ref. It's an array ref.)

> 	my @sref = @{$softwareListRef};
> 	print Dumper(@sref);
> 
> 	for (my $i = 0; $i<@sref ; $i++) {
> 		my $sn = $sref[$i];

This would be better written

    for my $sn (@sref) {

> 		print Dumper($sn);

You are missing a closing brace here.

> Generates this output:
> 
> $VAR1 = [
>           'autoTestSoftware001',
>           'autoTestSoftware050'
>         ];
> $VAR1 = [
>           'autoTestSoftware001',
>           'autoTestSoftware050'
>         ];

Not for me it doesn't. With the changes noted above, I get

    $VAR1 = 'autoTestSoftware001';
    $VAR2 = 'autoTestSoftware050';
    $VAR1 = 'autoTestSoftware001';
    $VAR1 = 'autoTestSoftware050';

> Note that the array @sref is properly de-referenced and printed. Then,
> inexplicably, the array item is selected by index and when printed, is
> equal to the original array. Foreach does the same thing. What's going
> on?

I have no idea, since the code you posted doesn't correspond to the
output you report.

Ben



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

Date: Sat, 6 Jun 2009 13:21:40 -0700 (PDT)
From: brian.haines@gmail.com
Subject: Re: Simple array iteration not working?
Message-Id: <0ebe0418-cf10-42af-97b0-a54f56ce872e@f16g2000vbf.googlegroups.com>

Thanks for pointing out the incorrect problem description. You're
right $softwareListRef is de-referenced, not @sref.

Any ideas why this would be happening? A similar block of code in the
next function in the same file works.



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

Date: 06 Jun 2009 04:34:53 GMT
From: Ben Bullock <benkasminbullock@gmail.com>
Subject: Re: What happened to perl doc
Message-Id: <4a29f1ed$0$867$c5fe31e7@read01.usenet4all.se>

On Thu, 04 Jun 2009 16:20:59 +0000, A. Sinan Unur wrote:

> perl man <klausfpga@gmail.com> wrote in
> news:80ddda9c-27b3-4346-b59c-5630341b15ad@f10g2000vbf.googlegroups.com:
> 
>> I use perldoc.perl.org a lot to browse perl documentation interactively
>> Loosing this capability would be a real pity :-(
> 
> Why???

The HTML version has hyperlinks and colours and things.

> The documentation for your version of Perl is on your computer.
> Yes, even the HTML version (assuming ActiveState on Windows ).

The HTML version is not on my current computer. I must have forgotten to 
install it or something. Anyway, I often end up at the online version of 
the documentation via Google. It's also useful for bookmarking via 
"delicious" if you are moving from one computer to another.






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

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


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