[30766] in Perl-Users-Digest
Perl-Users Digest, Issue: 2011 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Nov 27 09:09:41 2008
Date: Thu, 27 Nov 2008 06:09:07 -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 Thu, 27 Nov 2008 Volume: 11 Number: 2011
Today's topics:
Re: Help: Count special words <tadmc@seesig.invalid>
Re: Help: Count special words <xueweizhong@gmail.com>
Re: Help: Count special words <xueweizhong@gmail.com>
Re: How to use special variable in regex? <someone@example.com>
Re: How to use special variable in regex? <bart.lateur@pandora.be>
Re: my variable is recognized in following sub <tadmc@seesig.invalid>
Re: my variable is recognized in following sub sln@netherlands.com
Re: my variable is recognized in following sub <tadmc@seesig.invalid>
negate a match in regex <shay.rozen@gmail.com>
Re: negate a match in regex <peter@makholm.net>
Re: negate a match in regex <someone@example.com>
new CPAN modules on Thu Nov 27 2008 (Randal Schwartz)
Re: what's so difficult about namespace? <xahlee@gmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 26 Nov 2008 23:15:48 -0600
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: Help: Count special words
Message-Id: <slrngisb84.403.tadmc@tadmc30.sbcglobal.net>
Amy Lee <openlinuxsource@gmail.com> wrote:
> I wanna clean up the lines which the 3rd, 4th and 5th
> column has the same letter.
-----------------------------------
#!/usr/bin/perl
use warnings;
use strict;
while ( <DATA> ) {
chomp;
print "$_ has 3 A's\n" if tr/A// >= 3;
print "$_ has 3 T's\n" if tr/T// >= 3;
print "$_ has 3 G's\n" if tr/G// >= 3;
print "$_ has 3 C's\n" if tr/C// >= 3;
}
__DATA__
Chr01 621 A A/G A
Chr01 752 C C/G C
Chr01 969 T C/T T
Chr01 1220 A/G G G
Chr01 1246 A/C C C
Chr01 1263 A/G A/G A
-----------------------------------
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Thu, 27 Nov 2008 03:43:25 -0800 (PST)
From: Todd <xueweizhong@gmail.com>
Subject: Re: Help: Count special words
Message-Id: <742861c2-0f08-49fd-b2ff-909f3d702403@n33g2000pri.googlegroups.com>
Tad J McClellan wrote:
> Amy Lee <openlinuxsource@gmail.com> wrote:
>
> > I wanna clean up the lines which the 3rd, 4th and 5th
> > column has the same letter.
>
> while ( <DATA> ) {
> chomp;
> print "$_ has 3 A's\n" if tr/A// >= 3;
To make question less boring and pure and to be interested, I'll
present a new question as:
give 2 strings, how to judge whether they have common
character?
or the next question, give 3/4/... strings, what to do?
-Todd
------------------------------
Date: Thu, 27 Nov 2008 03:56:38 -0800 (PST)
From: Todd <xueweizhong@gmail.com>
Subject: Re: Help: Count special words
Message-Id: <92699e71-1880-4431-b8bd-cc3df6a5ff11@k24g2000pri.googlegroups.com>
I got a solution for this:
> give 2 strings, how to judge whether they have common
>perl -e '"$ARGV[0]\0$ARGV[1]"=~/(\S).*?\0.*?\1/ ? print "true" : print "false"' aaaaaaabcccccccccc eebff
true
/xueweizhong:~/perl/misc (1 jobs)
>perl -e '"$ARGV[0]\0$ARGV[1]"=~/(\S).*?\0.*?\1/ ? print "true" : print "false"' aaaaaaabcccccccccc eeff
false
Following this, we can write 3 strings solution naturally, but not for
any number of strings problem.
-Todd
------------------------------
Date: Wed, 26 Nov 2008 22:53:17 -0800
From: "John W. Krahn" <someone@example.com>
Subject: Re: How to use special variable in regex?
Message-Id: <vtrXk.5176$b05.2977@newsfe06.iad>
Peng Yu wrote:
>
> I want to use some variable in regex. But the below code does not work
> as I expected. Can somebody let me know what I am wrong?
>
> #!/usr/bin/perl
>
> use warnings;
> use strict;
>
> my @array = ('a' , 'b');
> my @strings = ('aa', 'ab', 'ba', 'bb', 'cc', 'cd');
>
> foreach (@array) {
> print "$_\n";
> my @subset = grep(/^$_.+$/, @strings);
That is short for:
my @subset = grep( $_ =~ /^$_.+$/, @strings );
So you are trying to match the current element of @strings against the
current element of @strings plus one character. And since the current
element of @strings cannot have more characters than the current element
of @strings it will never match.
What you want is:
foreach my $element ( @array ) {
print "$element\n";
my @subset = grep /^$element.+$/, @strings;
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Thu, 27 Nov 2008 08:03:29 +0100
From: Bart Lateur <bart.lateur@pandora.be>
Subject: Re: How to use special variable in regex?
Message-Id: <nbhsi4dcoie60v4md4elpdu6u5cu67fr8p@4ax.com>
Peng Yu wrote:
>I want to use some variable in regex. But the below code does not work
>as I expected. Can somebody let me know what I am wrong?
>#!/usr/bin/perl
>my @array = ('a' , 'b');
>my @strings = ('aa', 'ab', 'ba', 'bb', 'cc', 'cd');
>
>foreach (@array) {
> print "$_\n";
> my @subset = grep(/^$_.+$/, @strings);
You're using $_ for two purposes, as your ordinary loop variable, and as
the variable in grep. You're hoping to use a different variable, but of
course, it'll use the same value twice: as the variable for grep.
The fix is to use a different loop variable:
foreach my $r (@array) {
print "$r\n";
my @subset = grep(/^$r.+$/, @strings);
...
Although you could use a copy of the loop variable:
foreach (@array) {
print "$_\n";
my $r = $_;
my @subset = grep(/^$r.+$/, @strings);
--
Bart.
------------------------------
Date: Wed, 26 Nov 2008 23:02:58 -0600
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: my variable is recognized in following sub
Message-Id: <slrngisag2.403.tadmc@tadmc30.sbcglobal.net>
sln@netherlands.com <sln@netherlands.com> wrote:
[ snip 125 lines ]
> Thans Tad!
If you really mean that, then you can pay me back by not full quoting
in the future.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Thu, 27 Nov 2008 08:58:11 GMT
From: sln@netherlands.com
Subject: Re: my variable is recognized in following sub
Message-Id: <1fnsi45tjknfe35ub06ujq02c1n4jvm79i@4ax.com>
On Wed, 26 Nov 2008 15:21:24 -0600, Tad J McClellan <tadmc@seesig.invalid> wrote:
>sln@netherlands.com <sln@netherlands.com> wrote:
>
>
[snip]
>
>To use your package variable with strict enabled you must either declare it:
>
> our $IwannaBeApackageGlobal = "do use strict";
>
>or use the explicit package name:
>
Just to be clear, I'm talking about using the variable within the package
when strict is enabled.
Within the package where this is declared, all is fine if I use the package name.
> $FunStuff::IwannaBeApackageGlobal = "do use strict";
Here is cut & paste code sample:
---------------------------------------
package FunStuff;
use strict;
our $IwannaBeApackageGlobal = "use strict then";
$FunStuff::IwannaBeApackageGlobal3 = "use strict then = 3";
print $IwannaBeApackageGlobal,"\n"; # works with strict
print $FunStuff::IwannaBeApackageGlobal3,"\n"; # works with strict
print $IwannaBeApackageGlobal3,"\n"; # does not work with strict
----------------------------------------------------------------------------------
Error: Variable "$IwannaBeApackageGlobal3" is not imported at [...] line 10.
Why do I get this error when printing $FunStuff::IwannaBeApackageGlobal3 as just
$IwannaBeApackageGlobal3. Without strict, this works fine.
sln
------------------------------
Date: Wed, 26 Nov 2008 07:04:31 -0600
From: Tad J McClellan <tadmc@seesig.invalid>
Subject: Re: my variable is recognized in following sub
Message-Id: <slrngiqiav.67c.tadmc@tadmc30.sbcglobal.net>
sln@netherlands.com <sln@netherlands.com> wrote:
> Within the package where this is declared, all is fine if I use the package name.
Outside of the package, all is ALSO fine if you use the package name!
(this is why you should alway prefer lexical variables over package
variables, except when you can't. i.e. package variables open you
up to "action at a distance" type of bugs.
)
> Here is cut & paste code sample:
Thank you.
> ---------------------------------------
> package FunStuff;
>
> use strict;
>
> our $IwannaBeApackageGlobal = "use strict then";
> $FunStuff::IwannaBeApackageGlobal3 = "use strict then = 3";
>
> print $IwannaBeApackageGlobal,"\n"; # works with strict
Works because it was declared with our().
> print $FunStuff::IwannaBeApackageGlobal3,"\n"; # works with strict
Works because it uses the fully qualified name.
> print $IwannaBeApackageGlobal3,"\n"; # does not work with strict
>
> ----------------------------------------------------------------------------------
> Error: Variable "$IwannaBeApackageGlobal3" is not imported at [...] line 10.
>
>
> Why do I get this error when printing $FunStuff::IwannaBeApackageGlobal3 as just
> $IwannaBeApackageGlobal3.
Because that is what "strict vars" is supposed to do.
That is, $IwannaBeApackageGlobal3
was not declared via "our" or "use vars"
and
was not localized via "my()"
and
was not fully qualified
perldoc strict
...
"strict vars"
This generates a compile‐time error if you access a variable that
wasn’t declared via "our" or "use vars", localized via "my()", or
wasn’t fully qualified.
--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
------------------------------
Date: Thu, 27 Nov 2008 00:40:00 -0800 (PST)
From: ikeon <shay.rozen@gmail.com>
Subject: negate a match in regex
Message-Id: <368a732a-e8ab-42e5-b32d-1aa91fbeaf0b@k41g2000yqn.googlegroups.com>
Hi All,
I have a script that I convert xml tags to html. like "<" I convert to
"<" and so on.
after the conversion I need to capture the information inside the tag.
let take for example the string "<abcd>: which is equivalent to
"<abcd>".
I tried to capture the "abcd" which can be different from tag to tag
in the following way:
/\<\;([^\&\gt\;]*)/
like match "<" and then match anything that is not ">".
the thing is that it doesn't work on all tags for some reason and I
was wondering on a principal base if doing a [^somestring] suppose to
work ?
Thanks.
------------------------------
Date: Thu, 27 Nov 2008 09:50:19 +0100
From: Peter Makholm <peter@makholm.net>
Subject: Re: negate a match in regex
Message-Id: <87ljv53644.fsf@vps1.hacking.dk>
ikeon <shay.rozen@gmail.com> writes:
> like match "<" and then match anything that is not ">".
> the thing is that it doesn't work on all tags for some reason and I
> was wondering on a principal base if doing a [^somestring] suppose to
> work ?
No, using [^string] wont work as you're expecting. Just like
[string] doesn't match 'string' but only one of the letters s, t, r,
i, n, or g [^stirng] just matches one letter which isn't in 'string'.
What you need is a negative look-ahead (?!string). Read 'perldoc
perlre' for the explanation of it.
//Makholm
------------------------------
Date: Thu, 27 Nov 2008 02:13:49 -0800
From: "John W. Krahn" <someone@example.com>
Subject: Re: negate a match in regex
Message-Id: <upuXk.149$jb1.28@newsfe05.iad>
ikeon wrote:
>
> I have a script that I convert xml tags to html. like "<" I convert to
> "<" and so on.
> after the conversion I need to capture the information inside the tag.
> let take for example the string "<abcd>: which is equivalent to
> "<abcd>".
> I tried to capture the "abcd" which can be different from tag to tag
> in the following way:
>
> /\<\;([^\&\gt\;]*)/
You probably want something like:
/<(.*?)>/
John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order. -- Larry Wall
------------------------------
Date: Thu, 27 Nov 2008 05:42:23 GMT
From: merlyn@stonehenge.com (Randal Schwartz)
Subject: new CPAN modules on Thu Nov 27 2008
Message-Id: <KAz96n.21Jx@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-DimReduction-0.00001
http://search.cpan.org/~miki/Algorithm-DimReduction-0.00001/
Dimension Reduction tool that relies on 'Octave'
----
Apache2-ModProxyPerlHtml-2.5
http://search.cpan.org/~darold/Apache2-ModProxyPerlHtml-2.5/
----
Apache2-WURFLFilter-0.41
http://search.cpan.org/~ifuschini/Apache2-WURFLFilter-0.41/
is a Apache Mobile Filter that permit to redirect the device to the correct mobile content you have definded
----
Builder-0.01
http://search.cpan.org/~draegtun/Builder-0.01/
Build XML, HTML, CSS and other outputs in blocks
----
CPAN-Mini-0.574
http://search.cpan.org/~rjbs/CPAN-Mini-0.574/
create a minimal mirror of CPAN
----
Catalyst-Plugin-Session-Store-DBIC-0.08
http://search.cpan.org/~danieltwc/Catalyst-Plugin-Session-Store-DBIC-0.08/
Store your sessions via DBIx::Class
----
Chart-OFC2-0.03_01
http://search.cpan.org/~jkutej/Chart-OFC2-0.03_01/
Generate html and data files for use with Open Flash Chart version 2
----
Class-Accessor-Lite-0.01
http://search.cpan.org/~kazuho/Class-Accessor-Lite-0.01/
a minimalistic variant of Class::Accessor
----
Class-Accessor-Lite-0.02
http://search.cpan.org/~kazuho/Class-Accessor-Lite-0.02/
a minimalistic variant of Class::Accessor
----
Class-MOP-0.71
http://search.cpan.org/~drolsky/Class-MOP-0.71/
A Meta Object Protocol for Perl 5
----
DBIx-OO-0.0.9
http://search.cpan.org/~mishoo/DBIx-OO-0.0.9/
Database to Perl objects abstraction
----
DBIx-Tree-MaterializedPath-v0.06
http://search.cpan.org/~larryl/DBIx-Tree-MaterializedPath-v0.06/
fast DBI queries and updates on "materialized path" trees
----
Data-DPath-0.01
http://search.cpan.org/~schwigon/Data-DPath-0.01/
DPath is not XPath!
----
Data-Pipeline-0.01
http://search.cpan.org/~jsmith/Data-Pipeline-0.01/
manage aggregated data filters
----
File-LibMagic-0.90
http://search.cpan.org/~fitzner/File-LibMagic-0.90/
Perlwrapper for libmagic
----
GStreamer-0.12
http://search.cpan.org/~tsch/GStreamer-0.12/
Perl interface to the GStreamer library
----
Git-PurePerl-0.36
http://search.cpan.org/~lbrocard/Git-PurePerl-0.36/
A Pure Perl interface to Git repositories
----
Google-Chart-0.05010
http://search.cpan.org/~dmaki/Google-Chart-0.05010/
Interface to Google Charts API
----
Gtk2-Ex-Clock-7
http://search.cpan.org/~kryde/Gtk2-Ex-Clock-7/
simple digital clock widget
----
Gtk2-Ex-Dragger-4
http://search.cpan.org/~kryde/Gtk2-Ex-Dragger-4/
drag to move adjustment position
----
Gtk2-Ex-ListModelConcat-2
http://search.cpan.org/~kryde/Gtk2-Ex-ListModelConcat-2/
concatenated list models
----
HTTP-Headers-Fast-0.01
http://search.cpan.org/~tokuhirom/HTTP-Headers-Fast-0.01/
faster implementation of HTTP::Headers
----
HTTP-Headers-Fast-0.02
http://search.cpan.org/~tokuhirom/HTTP-Headers-Fast-0.02/
faster implementation of HTTP::Headers
----
HTTP-Headers-Fast-0.03
http://search.cpan.org/~tokuhirom/HTTP-Headers-Fast-0.03/
faster implementation of HTTP::Headers
----
HTTP-Headers-Fast-0.04
http://search.cpan.org/~tokuhirom/HTTP-Headers-Fast-0.04/
faster implementation of HTTP::Headers
----
IPC-SysV-2.00_01
http://search.cpan.org/~mhx/IPC-SysV-2.00_01/
System V IPC constants and system calls
----
Log-Syslog-UDP-0.14
http://search.cpan.org/~athomason/Log-Syslog-UDP-0.14/
Perl extension for very quickly sending syslog messages over UDP.
----
Mail-SPF-Iterator-1.01
http://search.cpan.org/~sullr/Mail-SPF-Iterator-1.01/
iterative SPF lookup
----
Method-Cached-0.03
http://search.cpan.org/~boxphere/Method-Cached-0.03/
The return value of the method is cached to your storage
----
MojoX-Encode-Gzip-1.00
http://search.cpan.org/~markstos/MojoX-Encode-Gzip-1.00/
Gzip a Mojo::Message::Response
----
MojoX-Session-0.03
http://search.cpan.org/~vti/MojoX-Session-0.03/
Session management for Mojo
----
Moose-0.62
http://search.cpan.org/~drolsky/Moose-0.62/
A postmodern object system for Perl 5
----
MooseX-Declare-0.01
http://search.cpan.org/~flora/MooseX-Declare-0.01/
Declarative syntax for Moose
----
MooseX-Declare-0.02
http://search.cpan.org/~flora/MooseX-Declare-0.02/
Declarative syntax for Moose
----
Net-Amazon-ATS-0.02
http://search.cpan.org/~shevek/Net-Amazon-ATS-0.02/
Use the Amazon Alexa Top Sites Service
----
Net-Amazon-AWIS-0.36
http://search.cpan.org/~shevek/Net-Amazon-AWIS-0.36/
Use the Amazon Alexa Web Information Service
----
Net-BitTorrent-0.039_002
http://search.cpan.org/~sanko/Net-BitTorrent-0.039_002/
BitTorrent peer-to-peer protocol class
----
Net-OpenSSH-0.03
http://search.cpan.org/~salva/Net-OpenSSH-0.03/
Perl SSH client package implemented on top of OpenSSH
----
Net-UCP-0.39
http://search.cpan.org/~nemux/Net-UCP-0.39/
Perl extension for EMI - UCP Protocol.
----
Net-UCP-Client-0.01
http://search.cpan.org/~nemux/Net-UCP-Client-0.01/
Perl extension for EMI - UCP Protocol [ Simple Client Implementation ]
----
PApp-1.42
http://search.cpan.org/~mlehmann/PApp-1.42/
multi-page-state-preserving web applications
----
POE-Component-IKC-0.2002
http://search.cpan.org/~gwyn/POE-Component-IKC-0.2002/
POE Inter-Kernel Communication
----
POE-Component-Server-BigBrother-0.03
http://search.cpan.org/~yblusseau/POE-Component-Server-BigBrother-0.03/
POE Component that implements BigBrother daemon functionality
----
Parse-Eyapp-1.131
http://search.cpan.org/~casiano/Parse-Eyapp-1.131/
Extensions for Parse::Yapp
----
Sane-0.02
http://search.cpan.org/~ratcliffe/Sane-0.02/
Perl extension for the SANE (Scanner Access Now Easy) Project
----
SysAdmin-0.08
http://search.cpan.org/~marr/SysAdmin-0.08/
Parent class for SysAdmin wrapper modules.
----
Template-Declare-0.30
http://search.cpan.org/~alexmv/Template-Declare-0.30/
Perlish declarative templates
----
Term-TermKey-Async-0.01
http://search.cpan.org/~pevans/Term-TermKey-Async-0.01/
perl wrapper around libtermkey for IO::Async
----
Tk-ObjEditor-2.007
http://search.cpan.org/~ddumont/Tk-ObjEditor-2.007/
Tk composite widget Obj editor
----
WWW-Vox-1.2
http://search.cpan.org/~markpasc/WWW-Vox-1.2/
Interact programmatically with Vox
----
WebService-Careerjet-0.07
http://search.cpan.org/~jeteve/WebService-Careerjet-0.07/
Perl interface to Careerjet's public search API
----
XML-Atom-Filter-0.07
http://search.cpan.org/~markpasc/XML-Atom-Filter-0.07/
easy creation of command line Atom processing tools
----
XML-Entities-0.0307
http://search.cpan.org/~sixtease/XML-Entities-0.0307/
Decode strings with XML entities
----
XML-RSS-LibXML-0.3003
http://search.cpan.org/~dmaki/XML-RSS-LibXML-0.3003/
XML::RSS with XML::LibXML
----
threads-shared-1.27
http://search.cpan.org/~jdhedden/threads-shared-1.27/
Perl extension for sharing data structures between threads
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: Thu, 27 Nov 2008 03:50:06 -0800 (PST)
From: Xah Lee <xahlee@gmail.com>
Subject: Re: what's so difficult about namespace?
Message-Id: <faac2632-34a5-4406-86ea-417cb33675c5@z6g2000pre.googlegroups.com>
On Nov 26, 4:57 pm, Kaz Kylheku <kkylh...@gmail.com> wrote:
> On 2008-11-26, Xah Lee <xah...@gmail.com> wrote:
>
> > Can you see, how you latched your personal beef about anti software
> > crisis philosophy into this no namespace thread?
>
> I did no such thing. My post was about explaining the decision process
> that causes humans to either adopt some technical solution or not.
Yes, you did that by following a moronic pop theory. The purpose of
this message is to tell you, that you should have decades of study of
multiple deciplines in history, economics, psychology, sociology, to
be immune to the lots of pop theories that float about especially
today with the internet.
let me explain why the pop theory you fell for breaks apart with
respect to the namespace issue here in this thread.
lacking namespace is not due to some ratio of perceived benefit
divided by perceived pain.
The benefit is huge, practical, and undeniable, the pain to adopt the
namespace fix is almost non-existant, because any such solution will
obvious be done in a backward compatible way. If the solution is
provided, the pain at max is just like a version upgrade. Java, Perl,
and all langs goes thru major upgrade every few years.
there are social reasions and technical reasons why langs lacking much
needed namespace took so long to fix. Social reason being, as others
has said in this thread, for examples: compatibilities issues in the
case of javascript's browser/server situation. In the case of Scheme
lisp, there's the issue of committee consensus and the RnRS standard.
You can't just have someone created a namespace implementation and
have every other Scheme lisp adopt it. As far as i know, namespace has
been in lots of Scheme implementations for long. The problem is
getting it into RnRs. The situation in Emacs lisp, at least partly
have to do with lack of developers, and partly have to do with Richard
Stallman. First, you need someone capable enough to actually implement
it as some sort of proof of concept, then you have to pass thru
Stallman himself, else you get XEmacs fork situation, which
significantly hurled GNU Emacs forward for the past about 15 years. In
the case of PHP, i suppose the primary reason is that it works without
namespace so far. PHP lang is mostly hack. The lang is so messy that
namespace is not just one thing that needs to be fixed. All the above
reasons, are of social one. There are undoubtly some technical reasons
too. I don't have compiler knowledge so i can't say what, but to say
the least, that creating a namespace in a existing lang that is widely
used in the industry is not something a average computer science
graduate can do.
The above are ugly, perhaps complex, real world facts. It's not some
pop fucking book about some pop pereciveness of some ratios.
one can go on analyze the perceived benefit and pain about the
namespace issue on each language specifically. You can see how it
doesn't apply. But going in detail on this'd be waste of time. If you
spend your time to debunk pop theories, play their game, the
scientific establishment would go no where.
There are quite a lot pop books on the market, they usually sells.
Their audience is the mass market. They have little scientific value.
They are not valued by any expert in any field. Most of them cannot be
invalidated in any way. This does not mean pop theory, pop psychology,
wisdoms, or anything not dry science, are all bullshit. Ultimately,
there's no magic rule that can tell you which is which. The degree and
quality of you or the masses's judgement, ultimately depends on your
education level. That is why, general education is so important, in
every nation and culture, while it's little talked about only because
its so obvious, so plain.
here's another pop book you might like:
=E2=80=A2 Book Review: Patterns of Software
http://xahlee.org/PageTwo_dir/Personal_dir/bookReviewRichardGabriel.html
this one is published a decade ago by a lisp dignitary.
Its theory of programing and software engineering is poetry and
taoism.
It suggests that C will be the last lang.
Xah
=E2=88=91 http://xahlee.org/
=E2=98=84
------------------------------
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 2011
***************************************