[29718] in Perl-Users-Digest
Perl-Users Digest, Issue: 962 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Oct 21 14:09:40 2007
Date: Sun, 21 Oct 2007 11: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 Sun, 21 Oct 2007 Volume: 11 Number: 962
Today's topics:
Re: ACM SIGAPL / APL2007 Conference / Montreal / one we <dannagle@verizon.net>
Re: cgi_bin <noreply@gunnar.cc>
Re: cgi_bin <usenet@larseighner.com>
Re: cgi_bin <noreply@gunnar.cc>
Re: cgi_bin <cwilbur@chromatico.net>
Re: Distributed RVS, Darcs, tech love <llothar@web.de>
Re: Distributed RVS, Darcs, tech love <lew@lewscanon.com>
Re: Distributed RVS, Darcs, tech love <arne@vajhoej.dk>
Re: Distributed RVS, Darcs, tech love <arne@vajhoej.dk>
Re: Distributed RVS, Darcs, tech love <omouse@gmail.com>
Re: Distributed RVS, Darcs, tech love <lew@lewscanon.com>
Re: Distributed RVS, Darcs, tech love <lew@lewscanon.com>
Re: Distributed RVS, Darcs, tech love <llothar@web.de>
Re: Distributed RVS, Darcs, tech love <llothar@web.de>
Re: Distributed RVS, Darcs, tech love <lew@lewscanon.com>
Re: Distributed RVS, Darcs, tech love <lew@lewscanon.com>
Re: Distributed RVS, Darcs, tech love <jo@durchholz.org>
Newbie question - email validation newbie@blank.com
Re: Newbie question - email validation <jurgenex@hotmail.com>
Re: Newbie question - email validation <rkb@i.frys.com>
Re: perl standard <RedGrittyBrick@SpamWeary.foo>
Re: polymorphic regex -- encoding issue <rvtol+news@isolution.nl>
Re: splitting a line <jurgenex@hotmail.com>
Re: splitting a line <bik.mido@tiscalinet.it>
Re: splitting a line <bik.mido@tiscalinet.it>
Re: splitting a line <RedGrittyBrick@SpamWeary.foo>
Re: splitting a line <bik.mido@tiscalinet.it>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 21 Oct 2007 14:37:23 GMT
From: Dan Nagle <dannagle@verizon.net>
Subject: Re: ACM SIGAPL / APL2007 Conference / Montreal / one week away
Message-Id: <DuJSi.1103$0l4.173@trnddc08>
Hello,
Can we please have a little trimming of newsgroups?
Fortran's character set is a nice safe subset
of seven-bit ASCII.
Veli-Matti wrote:
> Gosi wrote:
> ..
>> I can not use the APL character set at all.
>> It is too mixed up with my national characters.
>
> What about a unicode version of APL?
>
> Honestly, I cannot use J because it mixes with all
> the characters I use... ;)
> -Veli-Matti
>
>
>
>
--
Dan Nagle
Purple Sage Computing Solutions, Inc.
------------------------------
Date: Sun, 21 Oct 2007 16:09:16 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: cgi_bin
Message-Id: <5o14seFkb3joU1@mid.individual.net>
Tad McClellan wrote:
> Nick Wedd <nick@maproom.co.uk> wrote:
>>> On Sat, 20 Oct 2007 12:36:25 GMT, "Jürgen Exner"
>>> <jurgenex@hotmail.com> wrote:
>>>> This is a question about which webserver you are using, how it is
>>>> configured, and best practices for structuring web sites.
>
> Note that this newsgroup is for discussing the Perl programming language.
So? Perl programs, intended to be run via CGI, are not very useful if
you don't know how to run them, you know.
>> Obviously I have the ability to keep all my executables in one directory
>> if I want to - but I don't see how this helps. Can you explain?
>
> Please ask questions about web server configuration in a newsgroup
> that has some connection with web servers.
Any suggestions? The FAQ suggests comp.infosystems.www.authoring.cgi,
which has been out of order for over a year.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: 21 Oct 2007 14:32:53 GMT
From: Lars Eighner <usenet@larseighner.com>
Subject: Re: cgi_bin
Message-Id: <slrnfhmomm.1r4l.usenet@debranded.larseighner.com>
In our last episode, <5o14seFkb3joU1@mid.individual.net>, the lovely and
talented Gunnar Hjalmarsson broadcast on comp.lang.perl.misc:
> Tad McClellan wrote:
>> Nick Wedd <nick@maproom.co.uk> wrote:
>>>> On Sat, 20 Oct 2007 12:36:25 GMT, "Jürgen Exner"
>>>> <jurgenex@hotmail.com> wrote:
>>>>> This is a question about which webserver you are using, how it is
>>>>> configured, and best practices for structuring web sites.
>>
>> Note that this newsgroup is for discussing the Perl programming language.
> So? Perl programs, intended to be run via CGI, are not very useful if
> you don't know how to run them, you know.
>>> Obviously I have the ability to keep all my executables in one directory
>>> if I want to - but I don't see how this helps. Can you explain?
>>
>> Please ask questions about web server configuration in a newsgroup
>> that has some connection with web servers.
> Any suggestions? The FAQ suggests comp.infosystems.www.authoring.cgi,
> which has been out of order for over a year.
So, run them from the command line. You complain that nameless authors of
nameless books recommend putting scripts in "cgi_bin" --- why do you not ask
those authors?
Frankly, I do not know why authors would give you that advice. The default
configuration for most of the servers in use on the web defines the script
alias directory as "/cgi-bin/" and since a hyphen is not an underscore, I
do not know where your authors got their advice.
--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 457 days to go.
What do you do when you're debranded?
------------------------------
Date: Sun, 21 Oct 2007 17:34:56 +0200
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: cgi_bin
Message-Id: <5o19t3FkggquU1@mid.individual.net>
Lars Eighner wrote:
> In our last episode, <5o14seFkb3joU1@mid.individual.net>, the lovely and
> talented
Oh, I'm flattered.
> Gunnar Hjalmarsson broadcast on comp.lang.perl.misc:
>
>> Tad McClellan wrote:
>>> Nick Wedd <nick@maproom.co.uk> wrote:
>>>>> On Sat, 20 Oct 2007 12:36:25 GMT, "Jürgen Exner"
>>>>> <jurgenex@hotmail.com> wrote:
>>>>>> This is a question about which webserver you are using, how it is
>>>>>> configured, and best practices for structuring web sites.
>>> Note that this newsgroup is for discussing the Perl programming language.
>
>> So? Perl programs, intended to be run via CGI, are not very useful if
>> you don't know how to run them, you know.
>
>>>> Obviously I have the ability to keep all my executables in one directory
>>>> if I want to - but I don't see how this helps. Can you explain?
>>> Please ask questions about web server configuration in a newsgroup
>>> that has some connection with web servers.
>
>> Any suggestions? The FAQ suggests comp.infosystems.www.authoring.cgi,
>> which has been out of order for over a year.
>
> So, run them from the command line. You complain that nameless authors of
> nameless books recommend putting scripts in "cgi_bin" --- why do you not ask
> those authors?
>
> Frankly, I do not know why authors would give you that advice. The default
> configuration for most of the servers in use on the web defines the script
> alias directory as "/cgi-bin/" and since a hyphen is not an underscore, I
> do not know where your authors got their advice.
Excuse me, Lars, but who are you talking to?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
Date: 21 Oct 2007 13:41:22 -0400
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: cgi_bin
Message-Id: <87prz8fjr1.fsf@mithril.chromatico.net>
>>>>> "NW" == Nick Wedd <nick@maproom.co.uk> writes:
NW> Obviously I have the ability to keep all my executables in one
NW> directory if I want to - but I don't see how this helps. Can
NW> you explain?
As has been explained to you at least twice, the use of a cgi-bin
directory is entirely a question of web server configuration, and has
nothing whatsoever to do with Perl specificially. The answer would be
the same if the executables in the the cgi-bin directory were written
in C or Java or INTERCAL. So ask for explanation in a newsgroup or on
a mailing list where web server configuration is on topic.
(Your inability to find such a forum that will answer your question is
not justification for asking it here, either.)
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
------------------------------
Date: Sun, 21 Oct 2007 06:09:18 -0700
From: llothar <llothar@web.de>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <1192972158.250126.203980@v23g2000prn.googlegroups.com>
> I'm, not sure that I'm getting your point, but are you trying to argue that
> _not_ knowing mathemathics makes you a better programmer?
No but it doesn't help you very much either. They are just different
skills.
> Or maybe that learning math is useless to a programmer?
No and at least the mathematical idea of building a universe on a
basic set
of axioms is pretty exciting for a programmer. But it's the idea not
the real
wisdom (I never had to use any serious maths in my 25 years of
programming)
that you need as a programmer
> This must be the most ignorant post I've seen
> this week. The *best* programmers I've seen actually had mathematic education.
Depends. I would call Knuth as one of the worst programmers. Look at
his total
failures on literature programming. Software Engineering is something
very
different. Having a dead - i mean end of development line software
like TeX - and
then trying to base a theory about software engineering (which is
based on changes)
is so absolutely stupid ...
------------------------------
Date: Sun, 21 Oct 2007 09:52:05 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <D4idne5kq88bxIbanZ2dnUVZ_qiinZ2d@comcast.com>
llothar wrote:
> Depends. I would call Knuth as one of the worst programmers. Look at
> his total
> failures on literature programming. Software Engineering is something
Umm, the term is "literate" programmer and there is evidence that it is not a
"failure".
> very
> different. Having a dead - i mean end of development line software
> like TeX - and
Based on what do you call it "dead end". It's used, it's outlasted many other
flashes in the pan, it does what its users require. You will need evidence
for such a claim.
> then trying to base a theory about software engineering (which is
> based on changes)
"base a theory" on what? There's a clause missing here.
> is so absolutely stupid ...
Is that a technical evaluation? It looks like random inflammatory comments
without basis in logic or evidence. Can stupidity be absolute? What is the
metric of stupidity?
How would you disprove that assertion? Oh, wait, there wasn't an assertion.
The sentence was incomplete. What are you asserting?
A theory based on what, exactly, is "so absolutely stupid"?
--
Lew
------------------------------
Date: Sun, 21 Oct 2007 10:39:53 -0400
From: =?UTF-8?B?QXJuZSBWYWpow7hq?= <arne@vajhoej.dk>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <471b64b2$0$90272$14726298@news.sunsite.dk>
Lew wrote:
>> very
>> different. Having a dead - i mean end of development line software
>> like TeX - and
>
> Based on what do you call it "dead end". It's used, it's outlasted many
> other flashes in the pan, it does what its users require. You will need
> evidence for such a claim.
According to wikipedia the last version is from december 2002.
That level of activity could be considered dead.
It would for almost any other software. Tex has some
"absolute" over it, so I am not sure normal software
practices apply.
But you could argue based on that.
Arne
------------------------------
Date: Sun, 21 Oct 2007 10:50:02 -0400
From: =?ISO-8859-1?Q?Arne_Vajh=F8j?= <arne@vajhoej.dk>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <471b6714$0$90276$14726298@news.sunsite.dk>
llothar wrote:
>> I'm, not sure that I'm getting your point, but are you trying to argue that
>> _not_ knowing mathemathics makes you a better programmer?
>
> No but it doesn't help you very much either. They are just different
> skills.
Many things within programming have a foundation in mathematics
and mathematical logic.
>> Or maybe that learning math is useless to a programmer?
>
> No and at least the mathematical idea of building a universe on a
> basic set
> of axioms is pretty exciting for a programmer. But it's the idea not
> the real
> wisdom (I never had to use any serious maths in my 25 years of
> programming)
> that you need as a programmer
Depends obvious a bot on what you consider serious math.
Expression evaluation, floating point characteristics, relational
database theory, simulation, optimum location, encryption etc.
are all based on mathematics of different levels.
>> This must be the most ignorant post I've seen
>> this week. The *best* programmers I've seen actually had mathematic education.
>
> Depends. I would call Knuth as one of the worst programmers. Look at
> his total
> failures on literature programming. Software Engineering is something
> very
> different.
I think you will find it very difficult to write a piece of code
that are not heavily influenced by Knuth.
Arne
------------------------------
Date: Sun, 21 Oct 2007 14:56:10 -0000
From: OMouse <omouse@gmail.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <1192978570.098588.276310@v23g2000prn.googlegroups.com>
For the love of the Perl, Python, Lisp, Java and functional
programmers, please just give an abstract of what you've written and
link to it?
-Rudolf
------------------------------
Date: Sun, 21 Oct 2007 11:02:11 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <TaednSYGYpJu9IbanZ2dnUVZ_tCrnZ2d@comcast.com>
Arne Vajhøj wrote:
> Lew wrote:
>>> very
>>> different. Having a dead - i mean end of development line software
>>> like TeX - and
>>
>> Based on what do you call it "dead end". It's used, it's outlasted
>> many other flashes in the pan, it does what its users require. You
>> will need evidence for such a claim.
>
> According to wikipedia the last version is from december 2002.
>
> That level of activity could be considered dead.
>
> It would for almost any other software. Tex has some
> "absolute" over it, so I am not sure normal software
> practices apply.
>
> But you could argue based on that.
No, you present good evidence that TeX is a dead end. It still doesn't
support the claim llothar wrote:
>> Depends. I would call Knuth as one of the worst programmers.
Plenty of brilliant programmers have written software that is no longer used
(except in legacy use cases). Good software, too. I suppose what I was
reacting to was the notion that TeX was a dead end at the time Knuth came up
with it, and that that somehow invalidated the accomplishment of coming up
with TeX.
The fact that it is still in use even five years after cessation of
development does mitigate the "dead end" assessment at least potentially.
--
Lew
------------------------------
Date: Sun, 21 Oct 2007 11:04:39 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <TaednSEGYpIa94banZ2dnUVZ_tDinZ2d@comcast.com>
OMouse wrote:
> For the love of the Perl, Python, Lisp, Java and functional
> programmers, please just give an abstract of what you've written and
> link to it?
I expect you'll be ignored on that. Xah Lee reposts and reposts these essays
from years agone. I don't even read his posts, just the responses.
--
Lew
------------------------------
Date: Sun, 21 Oct 2007 08:31:45 -0700
From: llothar <llothar@web.de>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <1192980705.698811.128060@i38g2000prf.googlegroups.com>
On 21 Okt., 21:39, Arne Vajh=F8j <a...@vajhoej.dk> wrote:
> That level of activity could be considered dead.
For me at least 2% of the total line count should be changed
to call it non dead.
I don't say it it not used anymore for users it might be
not dead but this is not the point under discussion here.
------------------------------
Date: Sun, 21 Oct 2007 08:42:29 -0700
From: llothar <llothar@web.de>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <1192981349.181197.308610@q5g2000prf.googlegroups.com>
>
> Depends obvious a bot on what you consider serious math.
>
> Expression evaluation, floating point characteristics, relational
> database theory, simulation, optimum location, encryption etc.
> are all based on mathematics of different levels.
Thats not i call serious maths. You just need a very little
understanding
here for all this concepts. A "extended high school degress" should be
well
enough (based on our education system in Germany - don't know how much
math
you do in a US high schoool). A little bit set theory and of course
boolean
algebra (on a very low level but unfortunately not teached in school).
But where do you need the way to prove mathematical theorems and this
is what
i call as serious math. You don't need to prove anything you just need
to
use it. (In 95% of all programming, except some embedded programming
with
DSP's or numeric.)
> > Depends. I would call Knuth as one of the worst programmers. Look at
> > his total
> > failures on literature programming. Software Engineering is something
> > very
> > different.
>
> I think you will find it very difficult to write a piece of code
> that are not heavily influenced by Knuth.
Well programming in the small like sort algorithms for sure. But not
for his great discoveries but for one of the first man who was paid
for this by this university employee.
But in the field of software enginering as i said before he
completely
failed. And for me programming is just another word for software
engineering these days.
------------------------------
Date: Sun, 21 Oct 2007 11:45:59 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <PYqdnQWoU7yl6YbanZ2dnUVZ_qOknZ2d@comcast.com>
llothar wrote:
> On 21 Okt., 21:39, Arne Vajhøj <a...@vajhoej.dk> wrote:
>
>> That level of activity could be considered dead.
>
> For me at least 2% of the total line count should be changed
> to call it non dead.
>
> I don't say it it not used anymore for users it might be
> not dead but this is not the point under discussion here.
No, there are two points - not whether Tex is "dead", but whether it's a "dead
end" (which do you mean?), and whether in any way that says anything about
Knuth's ability as a programmer.
Evidence is that TeX development is dead. There is not yet firm evidence that
Tex is a "dead end" (or even what that means), and there has been none (nor, I
expect, is there any) that any of that reflects on Knuth's skill as a programmer.
The switch from asserting "dead end" to asserting "dead" is sort of an
interesting rhetorical device. Just pick one or the other, or if you prefer,
assert both, but please be clear. Should we just accept that you meant, "less
than 2% of total line count changed"? Per year? Per century? What if the
code is perfect and has no need of change? Is it (a) dead (end)?
(Who uses line count as a metric of anything any more?)
--
Lew
------------------------------
Date: Sun, 21 Oct 2007 11:52:03 -0400
From: Lew <lew@lewscanon.com>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <tpednUBH8fM-6IbanZ2dnUVZ_hOdnZ2d@comcast.com>
llothar wrote:
> Well programming in the small like sort algorithms for sure. But not
> for his great discoveries but for one of the first man who was paid
> for this by this university employee.
What a curious thesis.
> But in the field of software enginering as i said before he
> completely
> failed.
As you said, but for which you provided absolutely no evidence, and the
counter evidence that Arne provided is that he has not "completely" failed for
any useful value of "failed". Statements of absolute only need one
counterexample. /The Art of Programming/ is arguably the most significant
contribution to the field of software engineering. By any reasonable
assessment, on the basis of that one work alone Knuth was a success.
Your rhetorical tack of unfounded assertions and inflammatory
characterizations, not to say complete disregard for the reality of the
situation, do not make a cogent case, much less a convincing one.
I am afraid that your conclusion is quite mistaken. Knuth is, if anything, a
huge success in the field of software engineering, whether you rate it as
making a contribution to the art, or as being paid to perform the art.
--
Lew
------------------------------
Date: Sun, 21 Oct 2007 19:34:56 +0200
From: Joachim Durchholz <jo@durchholz.org>
Subject: Re: Distributed RVS, Darcs, tech love
Message-Id: <ffg2jk$mj$1@online.de>
Lew schrieb:
> I am afraid that your conclusion is quite mistaken. Knuth is, if
> anything, a huge success in the field of software engineering, whether
> you rate it as making a contribution to the art, or as being paid to
> perform the art.
Well, sort of.
Some of the code given is unreadable. (He obviously didn't take the
"structured programming" thing to heart.)
Worse, some of the code given is inscrutable, and remains unexplained
(e.g. the code for the spectral test algorithm).
Whole classes of algorithms were omitted. This is probably no fault of
Knuth as a programmer, but simply a field that's moving faster than a
single person can keep up with.
These are small detractions from a large overall contribution.
In particular, I find llothars characterization of TeX wrong: it is one
of the least buggy typesetting programs ever written (not a small feat),
and it *still* produces output that is as least as good as what other
programs do, and in fact better than the vast majority.
It also has downsides, most notably the markup language is pure horror.
TeX's markup language is a dead end.
TeX's algorithm isn't. Actually it has been extracted from the software
and is available as a functional program, waiting to be embedded into a
typesetting system with more modern qualities.
Regards,
Jo
------------------------------
Date: Sun, 21 Oct 2007 16:01:28 GMT
From: newbie@blank.com
Subject: Newbie question - email validation
Message-Id: <MPG.21858830b1041c6e9899db@news-text.blueyonder.co.uk>
Sorry if this is oft repeated but I cant find anything in faqs
can someone tell me the simplest (doesnt have to be the cleverest) means
of validating an email address (not MX lookup just the string itself)
thanks
newbie
------------------------------
Date: Sun, 21 Oct 2007 16:41:13 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Newbie question - email validation
Message-Id: <JiLSi.164$f63.86@trndny03>
newbie@blank.com wrote:
> Sorry if this is oft repeated but I cant find anything in faqs
>
> can someone tell me the simplest (doesnt have to be the cleverest)
> means of validating an email address (not MX lookup just the string
> itself)
perldoc -q mail
"How do I check a valid mail address?"
jue
------------------------------
Date: Sun, 21 Oct 2007 18:05:38 -0000
From: Ron Bergin <rkb@i.frys.com>
Subject: Re: Newbie question - email validation
Message-Id: <1192989938.078408.242590@e34g2000pro.googlegroups.com>
On Oct 21, 9:01 am, new...@blank.com wrote:
> Sorry if this is oft repeated but I cant find anything in faqs
>
> can someone tell me the simplest (doesnt have to be the cleverest) means
> of validating an email address (not MX lookup just the string itself)
>
> thanks
>
> newbie
use Email::Valid;
my $validate = Email::Valid->new;
my $address = 'someone@somewhere.com';
print $validate->address($address) ? 'yes' : 'no';
------------------------------
Date: Sun, 21 Oct 2007 14:41:12 +0100
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Re: perl standard
Message-Id: <Zb2dnai3kpxjy4baRVnytQA@bt.com>
Wade Ward wrote:
> Yes.
AOL? Dada?
--
Es brillig war. Die schlichte Toven
Wirrten und wimmelten in Waben;
Und aller-mümsige Burggoven
Die mohmen Räth' ausgraben
------------------------------
Date: Sun, 21 Oct 2007 18:02:04 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: polymorphic regex -- encoding issue
Message-Id: <ffg4eo.1i4.1@news.isolution.nl>
Dale Gerdemann schreef:
> Thanks Ilya and Affijn for your "improvements" but I still like my own
> code better, because at least I break it down into commented steps.
Ahem, you are replying to the wrong message. I reply to the part that I
quote. So the relation to your code was broken by me on purpose.
> But what the "improvers" of my code also missed is that I had a second
> reason for the itermediate step. I wanted the complete CP1251 charset
> stored in a variable so that I could make several passes through it.
> As you see in the small example I made two passes. Once for '\w' and
> once for '\s'.
What you are missing is that the $w in
my $w = pack "C*", grep decode('cp1251', chr) =~ /\w/, 0..255;
contains exactly what is in your $w.
So for $s you can just do:
my $s = pack "C*", grep decode('cp1251', chr) =~ /\s/, 0..255;
Perhaps you like it more like this:
$cp1251_word_chars =
pack("C*", grep decode('cp1251', chr) =~ /\w/, 0..255);
$cp1251_whitespace_chars =
pack("C*", grep decode('cp1251', chr) =~ /\s/, 0..255);
so that your
m/($search_word)[$s]([$w]+)/g)
becomes
m/($search_word)[$cp1251_whitespace_chars]([$cp1251_word_chars]+)/g
And maybe you should allow more than 1 whitespace character there:
m/($search_word)[$cp1251_whitespace_chars]+([$cp1251_word_chars]+)/g
And if your $search_word can ever contain regex metacharacters, look
into quotemeta.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Sun, 21 Oct 2007 13:24:24 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: splitting a line
Message-Id: <cqISi.533$Qj3.290@trndny01>
Michele Dondi wrote:
> On Sun, 21 Oct 2007 06:45:28 GMT, "Jürgen Exner"
> <jurgenex@hotmail.com> wrote:
>
>> As far as Perl and perl are concerned there are no lines in a Perl
>> script(*) at all. It's like asking how many inches are in a cup of
>> sugar. Yeah, there
>
> I would say that "fundamentally" there are no lines. Consider e.g.
> comments, regexen, literal strings.
Fair enough. You are right, there are some tokens where line breaks are
significant.
>> (*) Please note, I'm assuming you are talking about the programming
>> language Perl and scripts written in this language. Perlscript does
>> exist, too, and it is quite a different animal.
>
> Yes, he's talking about the "PPL"! :P
Just which one? :-/
The people? Or the Privat Pilot License? Or the Polymorphic Programming
Language by Standish (at least this one would have some relation to the
comp.lang hierarchie)?
jue
------------------------------
Date: Sun, 21 Oct 2007 16:48:35 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: splitting a line
Message-Id: <gkpmh3hnsdk189ck5s6o9a2fquojeh2agk@4ax.com>
On Sun, 21 Oct 2007 06:46:12 -0700, "Wade Ward" <zaxfuuq@invalid.net>
wrote:
>> 2. Michele is a man.
>To you. I think you have no idea hoew false this statemwnent is.
I think YOU have no idea hoew false this statemwnent is.
AFAIK I'm a man.
>> 3. Michele hasn't said anything in this thread yet.
>Wait about five minutes.
Am I within 300 seconds?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sun, 21 Oct 2007 16:51:21 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: splitting a line
Message-Id: <gqpmh35nf8uvimm7rvairipb2f3jvvcl6i@4ax.com>
On Sun, 21 Oct 2007 06:22:14 -0700, "Wade Ward" <zaxfuuq@invalid.net>
wrote:
>> Duh, then you should read the std docs regarding Perl's syntax.
>34 fucking tabs. Where;s evelyn ruud?
Tabs?
>> email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
>34 TABS TO GET THROUgh IT?
Tabs?!?
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
Date: Sun, 21 Oct 2007 16:42:37 +0100
From: RedGrittyBrick <RedGrittyBrick@SpamWeary.foo>
Subject: Re: splitting a line
Message-Id: <bIOdndvOVILu7obanZ2dnUVZ8q6unZ2d@bt.com>
Michele Dondi wrote:
> On Sun, 21 Oct 2007 06:22:14 -0700, "Wade Ward" <zaxfuuq@invalid.net>
> wrote:
>
>>> Duh, then you should read the std docs regarding Perl's syntax.
>> 34 fucking tabs. Where;s evelyn ruud?
>
> Tabs?
>
>>> email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
>> 34 TABS TO GET THROUgh IT?
>
> Tabs?!?
>
I find Wade is episodically a bit difficult to understand. I did wonder
if these tabs were the reason:
http://www.outtherescrapbooking.com/images/LARGE/Beer-Tabs.gif
;-)
------------------------------
Date: Sun, 21 Oct 2007 18:02:43 +0200
From: Michele Dondi <bik.mido@tiscalinet.it>
Subject: Re: splitting a line
Message-Id: <rttmh394vrm4ekk687p6mo1o2pp64r8r2k@4ax.com>
On Sun, 21 Oct 2007 16:42:37 +0100, RedGrittyBrick
<RedGrittyBrick@SpamWeary.foo> wrote:
>I find Wade is episodically a bit difficult to understand. I did wonder
I suppose that he's talking about his browser tabs, but I can't
understand why -exactly- he has 34 open for perl's docs.
>if these tabs were the reason:
>http://www.outtherescrapbooking.com/images/LARGE/Beer-Tabs.gif
LOL Out Loud!
Michele
--
{$_=pack'B8'x25,unpack'A8'x32,$a^=sub{pop^pop}->(map substr
(($a||=join'',map--$|x$_,(unpack'w',unpack'u','G^<R<Y]*YB='
.'KYU;*EVH[.FHF2W+#"\Z*5TI/ER<Z`S(G.DZZ9OX0Z')=~/./g)x2,$_,
256),7,249);s/[^\w,]/ /g;$ \=/^J/?$/:"\r";print,redo}#JAPH,
------------------------------
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 962
**************************************