[29863] in Perl-Users-Digest
Perl-Users Digest, Issue: 1106 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Dec 12 03:09:40 2007
Date: Wed, 12 Dec 2007 00:09:04 -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 Wed, 12 Dec 2007 Volume: 11 Number: 1106
Today's topics:
Re: "use constant X=>(1,2);" or "use constant X=>[1,2]; <kingskippus@gmail.com>
Can't locate object method "readMessage" ... (Inheritan <njc@cookie.uucp>
Re: Can't locate object method "readMessage" ... (Inher <john@castleamber.com>
Free perl reference ebook Download now | http://freepdf <xtweb2@gmail.com>
Re: Free perl reference ebook Download now | http://fre <usenet@davidfilmer.com>
Re: Free perl reference ebook Download now | http://fre <usenet@davidfilmer.com>
Re: Free perl reference ebook Download now | http://fre <jurgenex@hotmail.com>
Re: Free perl reference ebook Download now | http://fre <uri@stemsystems.com>
multi-CPU search through file <glex_no-spam@qwest-spam-no.invalid>
Re: multiple return regex question <peter@makholm.net>
Re: multiple return regex question vorticitywolfe@gmail.com
new CPAN modules on Wed Dec 12 2007 (Randal Schwartz)
Re: URGENT Req: Perl Developer - PA - 6 months <dha@panix.com>
Why isn't void context a 'real' context <sensorflo@gmail.com>
Re: Why isn't void context a 'real' context (Randal L. Schwartz)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 11 Dec 2007 13:10:40 -0800 (PST)
From: TonyV <kingskippus@gmail.com>
Subject: Re: "use constant X=>(1,2);" or "use constant X=>[1,2];"?
Message-Id: <5d125a02-6f9d-46b5-82ae-c7846a305ec6@s8g2000prg.googlegroups.com>
On Dec 11, 11:29 am, Michele Dondi <bik.m...@tiscalinet.it> wrote:
> On Mon, 10 Dec 2007 14:46:42 -0800 (PST), TonyV
>
> <kingskip...@gmail.com> wrote:
> >Actually, what I read a long time ago was O'Reilly's "Perl Best
> >Practices," section 4.5: Use named constants, but don't use
> >"constant". (I.e. the constant pragma.) It follows with several good
>
> Actually, many experienced and knowledgeable hackers beg to differ
> with some PBP item or another: after all it's just a list of
> suggestions. While some of the points they make are perfectly fine,
> constant.pm *does* have its use.
I never said that PBP is The Way It Must Be Done(tm). All I said was
that there are compelling reasons to NOT use the constant pragma;
reasons that, in my opinion, outweigh the convenience and semantic
purity of using it unless there's just some particular reason that you
HAVE to have it.
And since it was implied that I haven't read the perldoc about
constants, I wanted to make sure he understood that this isn't just
one loony developer in a sea of more experienced people, it's actually
something that at least some gurus deem worthy enough to be a "Best
Practice."
------------------------------
Date: Tue, 11 Dec 2007 21:20:24 -0600
From: Neil Cherry <njc@cookie.uucp>
Subject: Can't locate object method "readMessage" ... (Inheritance question)
Message-Id: <slrnflukro.i2c.njc@cookie.uucp>
I'm trying to create a package that overrides the 'new' method in the
package: ElkM1::Control but use the rest of the methods as is. Here's
my initial portion of my code (without the indent):
package ElkM1::Control::Serial;
use 5.008006;
use strict;
use warnings;
use Carp;
use Device::SerialPort; # this is the main difference
use ElkM1::Control; # inherit from ElkM1::Control
#@ISA = qw( "ElkM1::Control" );
My sample code to test this is:
use lib '/home/njc/dev/v2-104/lib';
use ElkM1::Control::Serial;
my $elk = ElkM1::Control::Serial->new( 'port' => '/dev/ttyM1',
'speed' => 115200);
# Main loop, read any message.
while (1) {
while (my $msg = $elk->readMessage) {
if (ref($msg) eq 'ElkM1::Control::ZoneChangeUpdate') {
print "zone ".$msg->getZone." is now ".getState;
if ($msg->getZone == 1 and $msg->isViolated) {
$elk->activateTask(task => 1);
# ... something else ...
}
} else {
print $msg->toString;
}
}
}
When I run this with the @ISA line commented out I get:
Can't locate object method "readMessage" via package
"ElkM1::Control::Serial" at /home/njc/elk_serial.pl line 11.
Uncommented:
Global symbol "@ISA" requires explicit package name at
/home/njc/dev/v2-104/lib/ElkM1/Control/Serial.pm line 13.
Compilation failed in require at /home/njc/elk_serial.pl line 3.
Does anyone have any pointers that will help me understand what I'm
doing wrong?
--
Linux Home Automation Neil Cherry ncherry@linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
------------------------------
Date: 12 Dec 2007 03:48:33 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: Can't locate object method "readMessage" ... (Inheritance question)
Message-Id: <Xns9A03DDDB0C271castleamber@130.133.1.4>
Neil Cherry <njc@cookie.uucp> wrote:
> Does anyone have any pointers that will help me understand what I'm
> doing wrong?
Instead of @ISA, I prefer to
use base 'Base::Class';
See: perldoc base
--
John
http://johnbokma.com/
------------------------------
Date: Tue, 11 Dec 2007 13:54:44 -0800 (PST)
From: Tony Andreas <xtweb2@gmail.com>
Subject: Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
Message-Id: <a82b63f3-fb22-4cfb-9f36-358bd7d7e0f7@t1g2000pra.googlegroups.com>
hi, i am want to share information for download free perl ebook.
download now
http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
------------------------------
Date: Tue, 11 Dec 2007 14:41:42 -0800 (PST)
From: David Filmer <usenet@davidfilmer.com>
Subject: Re: Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
Message-Id: <0af6cf89-e6d3-4e2e-86d2-8364dba544f5@b1g2000pra.googlegroups.com>
On Dec 11, 1:54 pm, Tony Andreas <xtw...@gmail.com> wrote:
> hi, i am want to share information for download free perl ebook.
It's not free, it's stolen. The book is
Copyright (c) 1996 by Sams Publishing
SECOND EDITION
All rights reserved. No part of this book shall be reproduced,
stored in a retrieval
system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or
otherwise, without written permission from the publisher.
(though I suppose Sams wouldn't object to me reproducing that
copyright notice)
FWIW, the book is probably worth about 95 cents, which is what it's
going for right now on Amazon.
--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)
------------------------------
Date: Tue, 11 Dec 2007 14:41:57 -0800 (PST)
From: David Filmer <usenet@davidfilmer.com>
Subject: Re: Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
Message-Id: <1e675b37-c929-4c4d-902c-30e253de1c4f@s12g2000prg.googlegroups.com>
On Dec 11, 1:54 pm, Tony Andreas <xtw...@gmail.com> wrote:
> hi, i am want to share information for download free perl ebook.
It's not free, it's stolen. The book is
Copyright (c) 1996 by Sams Publishing
SECOND EDITION
All rights reserved. No part of this book shall be reproduced,
stored in a retrieval
system, or transmitted by any means, electronic, mechanical,
photocopying, recording, or
otherwise, without written permission from the publisher.
(though I suppose Sams wouldn't object to me reproducing that
copyright notice)
FWIW, the book is probably worth about 95 cents, which is what it's
going for right now on Amazon.
--
The best way to get a good answer is to ask a good question.
David Filmer (http://DavidFilmer.com)
------------------------------
Date: Tue, 11 Dec 2007 23:05:04 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
Message-Id: <AIE7j.22150$Bg7.2465@trndny07>
Tony Andreas wrote:
> hi, i am want to share information for download free perl ebook.
> download now
> http://freepdf-ebook.blogspot[...]
What can you possibly expect from a book where the very first sentence of
the abstract is wrong already: "Perl is an acronym,[...]". From the FAQ
(perldoc -q difference):
But never write "PERL", because
perl isn't really an acronym, apocryphal folklore and post-facto
expansions notwithstanding.
jue
------------------------------
Date: Tue, 11 Dec 2007 22:01:51 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Free perl reference ebook Download now | http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
Message-Id: <x7wsrksxf4.fsf@mail.sysarch.com>
>>>>> "TA" == Tony Andreas <xtweb2@gmail.com> writes:
TA> hi, i am want to share information for download free perl ebook.
TA> download now
TA> http://freepdf-ebook.blogspot.com/2007/12/tech-perl-programming-in-21-days.html
hi, i want to share that you are stealing a copyrighted book and doing a
criminal act. i hope you appreciate this and stop it. besides it is
likely a crappy book as most 'learn X in N periods' books are crap. and
i doubt you know a good book from a bad one, legal or not.
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: Tue, 11 Dec 2007 16:14:19 -0600
From: "J. Gleixner" <glex_no-spam@qwest-spam-no.invalid>
Subject: multi-CPU search through file
Message-Id: <475f0bbc$0$511$815e3792@news.qwest.net>
Since the perl version is the fastest and it might be useful
for others who have a multi-CPU machine and need to search
through a text file, I thought others might find this
interesting:
Wide Finder Project
http://www.tbray.org/ongoing/When/200x/2007/10/30/WF-Results
------------------------------
Date: Tue, 11 Dec 2007 21:10:39 +0000
From: Peter Makholm <peter@makholm.net>
Subject: Re: multiple return regex question
Message-Id: <8763z57x9s.fsf@hacking.dk>
vorticitywolfe@gmail.com writes:
> I have a string like such "STAT 09834Z 12004KT VV001 BKN150 OVC220
> A3025 T00281039"
>
> I want to grab the VV001 BKN150 and OVC220 part in different variables
> $1, $2, $3, etc..
>
> I am parsing the string with this regex:
>
> @return = m/((VV|BKN|OVC)\d{2,4})/g;
You have two capturing parenteses, this means that each time you
pattern matches you get two "results". Use non-capturing parenteses
for the inner group to get what you want:
m/((?:VV|BKN|OVC)\d{2,4})/g;
Read the 'Extended Patterns' part of 'perldoc perlre' for more
information.
//Makholm
------------------------------
Date: Tue, 11 Dec 2007 13:14:42 -0800 (PST)
From: vorticitywolfe@gmail.com
Subject: Re: multiple return regex question
Message-Id: <6ede063e-f1b6-400e-ac3d-94178ed532f7@i29g2000prf.googlegroups.com>
On Dec 11, 9:10 pm, Peter Makholm <pe...@makholm.net> wrote:
> vorticitywo...@gmail.com writes:
> > I have a string like such "STAT 09834Z 12004KT VV001 BKN150 OVC220
> > A3025 T00281039"
>
> > I want to grab the VV001 BKN150 and OVC220 part in different variables
> > $1, $2, $3, etc..
>
> > I am parsing the string with this regex:
>
> > @return = m/((VV|BKN|OVC)\d{2,4})/g;
>
> You have two capturing parenteses, this means that each time you
> pattern matches you get two "results". Use non-capturing parenteses
> for the inner group to get what you want:
>
> m/((?:VV|BKN|OVC)\d{2,4})/g;
>
> Read the 'Extended Patterns' part of 'perldoc perlre' for more
> information.
>
> //Makholm
Thanks, worked like a charm!! I knew it had to be something simple! I
haven't quite got all the metacharacters down, but the Extended
Patterns should be of great help! Thanks Again!!
------------------------------
Date: Wed, 12 Dec 2007 05:42:16 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Wed Dec 12 2007
Message-Id: <Jsx96G.1IEy@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-Spinners-0.5
http://search.cpan.org/~kscript/Acme-Spinners-0.5/
A fully extensible framework...for creating text spinners.
----
Acme-Spinners-0.6
http://search.cpan.org/~kscript/Acme-Spinners-0.6/
A fully extensible framework...for creating text spinners.
----
App-Build-0.69
http://search.cpan.org/~mbarbon/App-Build-0.69/
extends Module::Build to build/install/configure entire applications (i.e. web applications), not just modules and programs
----
BDB-1.4
http://search.cpan.org/~mlehmann/BDB-1.4/
Asynchronous Berkeley DB access
----
CPAN-Reporter-1.0601
http://search.cpan.org/~dagolden/CPAN-Reporter-1.0601/
Adds CPAN Testers reporting to CPAN.pm
----
Catalyst-Authentication-Store-FromSub-Hash-0.03
http://search.cpan.org/~fayland/Catalyst-Authentication-Store-FromSub-Hash-0.03/
A storage class for Catalyst Authentication using one Catalyst Model class (hash returned)
----
Catalyst-Controller-Atompub-0.3.1
http://search.cpan.org/~takeru/Catalyst-Controller-Atompub-0.3.1/
A Catalyst controller for the Atom Publishing Protocol
----
Chart-Math-Axis-1.04
http://search.cpan.org/~adamk/Chart-Math-Axis-1.04/
Implements an algorithm to find good values for chart axis
----
Class-Handle-1.07
http://search.cpan.org/~adamk/Class-Handle-1.07/
Create objects that are handles to Classes
----
Config-Any-0.10
http://search.cpan.org/~bricas/Config-Any-0.10/
Load configuration from different file formats, transparently
----
Config-Record-1.1.2
http://search.cpan.org/~danberr/Config-Record-1.1.2/
Configuration file access
----
DBIx-FileSystem-1.5
http://search.cpan.org/~afrika/DBIx-FileSystem-1.5/
Manage tables like a filesystem
----
DBIx-MySQLSequence-1.04
http://search.cpan.org/~adamk/DBIx-MySQLSequence-1.04/
Proper and correct (emulated) sequence support for MySQL
----
DateTime-Format-Natural-0.62_01
http://search.cpan.org/~schubiger/DateTime-Format-Natural-0.62_01/
Create machine readable date/time with natural parsing logic
----
Devel-Leak-Module-0.01_03
http://search.cpan.org/~adamk/Devel-Leak-Module-0.01_03/
Track loaded modules and namespaces
----
Devel-Leak-Object-0.92
http://search.cpan.org/~adamk/Devel-Leak-Object-0.92/
Detect leaks of objects
----
Devel-Mallinfo-2
http://search.cpan.org/~kryde/Devel-Mallinfo-2/
mallinfo() memory statistics
----
File-Flat-1.01
http://search.cpan.org/~adamk/File-Flat-1.01/
Implements a flat filesystem
----
File-Flat-1.02
http://search.cpan.org/~adamk/File-Flat-1.02/
Implements a flat filesystem
----
File-LogReader-0.02
http://search.cpan.org/~lukec/File-LogReader-0.02/
tail log files with state between runs
----
HTML-Location-1.02
http://search.cpan.org/~adamk/HTML-Location-1.02/
Working with disk to URI file mappings (deprecated: see URI::ToDisk)
----
HTML-Tiny-1.00
http://search.cpan.org/~andya/HTML-Tiny-1.00/
Lightweight, dependency free HTML/XML generation
----
Image-Delivery-0.14
http://search.cpan.org/~adamk/Image-Delivery-0.14/
Efficient transformation and delivery of web images
----
Imager-Graph-0.04
http://search.cpan.org/~tonyc/Imager-Graph-0.04/
Perl extension for producing Graphs using the Imager library.
----
List-Rotation-1.007
http://search.cpan.org/~pelagic/List-Rotation-1.007/
Loop (Cycle, Alternate or Toggle) through a list of values via a singleton object implemented as closure.
----
MOSES-MOBY-0.83
http://search.cpan.org/~ekawas/MOSES-MOBY-0.83/
Perl extension for the automatic generation of BioMOBY web services
----
MooseX-Timestamp-0.03
http://search.cpan.org/~samv/MooseX-Timestamp-0.03/
simple timestamp type for Moose
----
MooseX-Timestamp-0.04
http://search.cpan.org/~samv/MooseX-Timestamp-0.04/
simple timestamp type for Moose
----
Nagios-Plugins-Memcached-0.02
http://search.cpan.org/~zigorou/Nagios-Plugins-Memcached-0.02/
Nagios plugin to observe memcached.
----
Net-Domain-TLD-1.67
http://search.cpan.org/~alexp/Net-Domain-TLD-1.67/
Work with TLD names
----
P5NCI-0.31
http://search.cpan.org/~chromatic/P5NCI-0.31/
Perl extension for loading shared libraries and their functions
----
POE-Component-Server-SimpleHTTP-1.26
http://search.cpan.org/~bingos/POE-Component-Server-SimpleHTTP-1.26/
Perl extension to serve HTTP requests in POE.
----
Parse-Eyapp-1.094
http://search.cpan.org/~casiano/Parse-Eyapp-1.094/
Extensions for Parse::Yapp
----
Parse-Readelf-0.03
http://search.cpan.org/~dorner/Parse-Readelf-0.03/
handle readelf's output with a class
----
QDBM_File-0.05
http://search.cpan.org/~yamato/QDBM_File-0.05/
Tied access to Quick Database Manager
----
Rose-DBx-Garden-0.07
http://search.cpan.org/~karman/Rose-DBx-Garden-0.07/
bootstrap Rose::DB::Object and Rose::HTML::Form classes
----
Rose-DBx-Garden-0.08
http://search.cpan.org/~karman/Rose-DBx-Garden-0.08/
bootstrap Rose::DB::Object and Rose::HTML::Form classes
----
Rose-DBx-Garden-Catalyst-0.05
http://search.cpan.org/~karman/Rose-DBx-Garden-Catalyst-0.05/
plant Roses in your Catalyst garden
----
Rose-DBx-Garden-Catalyst-0.06
http://search.cpan.org/~karman/Rose-DBx-Garden-Catalyst-0.06/
plant Roses in your Catalyst garden
----
Rose-HTML-Objects-0.551
http://search.cpan.org/~jsiracusa/Rose-HTML-Objects-0.551/
Object-oriented interfaces for HTML.
----
Spreadsheet-Engine-0.01
http://search.cpan.org/~tmtm/Spreadsheet-Engine-0.01/
Core calculation engine for a spreadsheet
----
String-Clean-0.01
http://search.cpan.org/~notbenh/String-Clean-0.01/
use data objects to clean strings
----
String-Clean-0.011
http://search.cpan.org/~notbenh/String-Clean-0.011/
use data objects to clean strings
----
TL1ng-0.06
http://search.cpan.org/~sscaffidi/TL1ng-0.06/
A simple, flexible, OO way to work with TL1.
----
Term-ProgressBar-Quiet-0.31
http://search.cpan.org/~lbrocard/Term-ProgressBar-Quiet-0.31/
Provide a progress meter if run interactively
----
Term-VT102-ZeroBased-1.01
http://search.cpan.org/~sartak/Term-VT102-ZeroBased-1.01/
Term::VT102 but with zero-based indices
----
Test-Inline-2.208
http://search.cpan.org/~adamk/Test-Inline-2.208/
Embed your tests in your code, next to what is being tested
----
Test-WWW-Selenium-1.14
http://search.cpan.org/~lukec/Test-WWW-Selenium-1.14/
Test applications using Selenium Remote Control
----
WWW-Wikipedia-1.93
http://search.cpan.org/~bricas/WWW-Wikipedia-1.93/
Automated interface to the Wikipedia
----
WebService-Backlog-0.03
http://search.cpan.org/~yamamoto/WebService-Backlog-0.03/
Perl interface to Backlog.
----
WebService-EveOnline-0.01
http://search.cpan.org/~chrisc/WebService-EveOnline-0.01/
a wrapper intended to (eventually) provide a consistent interface to the MMORPG game, "Eve Online"
----
mocked-0.09
http://search.cpan.org/~lukec/mocked-0.09/
use mocked libraries in unit tests
----
only-matching-0.02
http://search.cpan.org/~adamk/only-matching-0.02/
Check that two Perl files are version-locked
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/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Tue, 11 Dec 2007 22:55:10 +0000 (UTC)
From: "David H. Adler" <dha@panix.com>
Subject: Re: URGENT Req: Perl Developer - PA - 6 months
Message-Id: <slrnflu5af.m2j.dha@panix2.panix.com>
On 2007-11-29, Chiru <chiruezn@gmail.com> wrote:
>
> My client is looking for Perl developers
You have posted a job posting or a resume in a technical group.
Longstanding Usenet tradition dictates that such postings go into
groups with names that contain "jobs", like "misc.jobs.offered", not
technical discussion groups like the ones to which you posted.
Had you read and understood the Usenet user manual posted frequently to
"news.announce.newusers", you might have already known this. :) (If
n.a.n is quieter than it should be, the relevent FAQs are available at
http://www.faqs.org/faqs/by-newsgroup/news/news.announce.newusers.html)
Another good source of information on how Usenet functions is
news.newusers.questions (information from which is also available at
http://www.geocities.com/nnqweb/).
Please do not explain your posting by saying "but I saw other job
postings here". Just because one person jumps off a bridge, doesn't
mean everyone does. Those postings are also in error, and I've
probably already notified them as well.
If you have questions about this policy, take it up with the news
administrators in the newsgroup news.admin.misc.
http://jobs.perl.org may be of more use to you
Yours for a better usenet,
dha
--
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
Beware of bugs in the above code; I have only proved it correct, not
tried it.
- Donald Knuth
------------------------------
Date: Tue, 11 Dec 2007 13:15:20 -0800 (PST)
From: Florian Kaufmann <sensorflo@gmail.com>
Subject: Why isn't void context a 'real' context
Message-Id: <f3771972-3537-4179-b8b6-e5959c44c505@s12g2000prg.googlegroups.com>
Hello
My copy of "Programming Perl" is telling me in Chapter 2/Context/Void
Context (and in other text parts nearby) that scalar- and list
contexts are the only real contexts. However, since wantarray lets me
distinguish between list, scalar and void context, I also can overload
my own subroutines 3 times: Depending on the 3 return values of
wantarray, I can let behave my subroutine 3 different ways, i.e.
overload it 3 times.
I assume that its just that Perl guarantees me that its builtin
operations are only overloaded in respect to scalar and list context;
never to void context?
Greetings
Flo
------------------------------
Date: Tue, 11 Dec 2007 14:01:40 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Why isn't void context a 'real' context
Message-Id: <86sl28opq3.fsf@blue.stonehenge.com>
>>>>> "Florian" == Florian Kaufmann <sensorflo@gmail.com> writes:
Florian> I assume that its just that Perl guarantees me that its builtin
Florian> operations are only overloaded in respect to scalar and list context;
Florian> never to void context?
I believe that in recent changes to Perl, void context is now noticed. For
example, map/grep in a void context no longer builds the result list.
The ultimate authority for this is, of course, the source code.
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: 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 1106
***************************************