[30459] in Perl-Users-Digest
Perl-Users Digest, Issue: 1702 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jul 8 18:10:09 2008
Date: Tue, 8 Jul 2008 15:09:12 -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 Tue, 8 Jul 2008 Volume: 11 Number: 1702
Today's topics:
Re: FAQ 1.12 What's the difference between "perl" and " <gvinalcde@gmail.com>
Re: FAQ 1.12 What's the difference between "perl" and " <cwilbur@chromatico.net>
Re: FAQ 1.12 What's the difference between "perl" and " <gvinalcde@gmail.com>
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? <BLOCKSPAMfishfry@your-mailbox.com>
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? <cwilbur@chromatico.net>
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? sherman_is_aturd@yahoo.com
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? sherman_is_aturd@yahoo.com
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? sherman_is_aturd@yahoo.com
Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? sherman_is_aturd@yahoo.com
help with regular expression <douglass_davis@earthlink.net>
Re: help with regular expression <fawaka@gmail.com>
it's me sherman_is_aturd@yahoo.com
looking for boys sherman_is_aturd@yahoo.com
macos sherman_is_aturd@yahoo.com
Question regarding Encode williams.wilkie@gmail.com
sherm wants a job? sherman_is_aturd@yahoo.com
Re: Value of "Programming perl" 1st Ed.? <uri@stemsystems.com>
Re: Value of "Programming perl" 1st Ed.? <skyler@shaw.ca>
Re: Want regex s/// to replace only nth occurrence <ced@blv-sam-01.ca.boeing.com>
XML::DOM question <elwood@agouros.de>
Re: XML::DOM question <spamtrap@dot-app.org>
Re: XML::DOM question <ben@morrow.me.uk>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 8 Jul 2008 12:56:35 -0700
From: "Gordon Corbin Etly" <gvinalcde@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6dhv3lF2jtqjU1@mid.individual.net>
Achim Peters wrote:
> Waylen Gumbal schrieb:
> > brian d foy wrote:
> > > Let's not go through this again. Larry gave two backronyms (that's
> > > the "post-facto expansion" part of the answer),
> > Thank you for replying.
> > > and even then did not uppercase the entire word.
> > He didn't have to. Larry said:
> >
> > < http://tinyurl.com/6joyuz >
> > " Perl not only stands for the Practical Extraction and Report
> > " Language, but it also stands for the Pathologically Eclectic
> > " Rubbish Lister.
> >
> > So if Larry himself said that's what Perl stands for, why is it
> > wrong to write either of those as "PERL" for short?
> Because Larry did not say "Perl stands for PERL".
You're making the same mistake as others. I didn't say nor quote
anything about Larry saying "PERL". He did say Perl can stand for
"Practical Extraction and Report" and one other expansion. What I've
been asking is why would it be wrong to write "PERL" for to mean
"Practical Extraction and Report Language" in short.
> You may not abbreviate either one to "P. E. R. L." or "P" or "PERL"
> because that's not what Larry said.
Please tell me where it says you cannot write "PERL" to mean "Practical
Extraction and Report Language" in short? Where is it written that this
explicitly cannot be done? That's all I ask, and no one wants to give a
real answer other than reiterating the status quo. That is not the same
as delivering a concrete explaining of why it is wrong, and this is why
I continue to put forth that there is nothing inherently wrong.
--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})"
------------------------------
Date: Tue, 08 Jul 2008 16:23:36 -0400
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <86fxqkjfav.fsf@mithril.chromatico.net>
>>>>> "GCE" == Gordon Corbin Etly <gvinalcde@gmail.com> writes:
GCE> Please tell me where it says you cannot write "PERL" to mean
GCE> "Practical Extraction and Report Language" in short? Where is
GCE> it written that this explicitly cannot be done? That's all I
GCE> ask, and no one wants to give a real answer other than
GCE> reiterating the status quo. That is not the same as delivering
GCE> a concrete explaining of why it is wrong, and this is why I
GCE> continue to put forth that there is nothing inherently wrong.
In an abstract sense, there's nothing inherently wrong with writing
PERL. But, as has been explained to you at least a dozen times, this is
a shibboleth that the core of the Perl community uses to distinguish
between people who are in the Perl community and people who are not.
If you write PERL, you are marking yourself as an outsider in the eyes
of people who are at the core of the Perl community. Charity and
politeness dictate that you should be informed of this; you have been.
No, there's nothing technically wrong with PERL, expanded as you
describe. Practically, it marks people who use it as either clueless
novices, who haven't yet encountered the FAQ, or as argumentative twits,
who have encountered the FAQ and choose to argue usage instead of doing
something more productive with everyone's time. As such, the shibboleth
serves a very useful purpose; it allows me to dismiss you (and,
incidentally, your "cousin," who has a very similar writing and
argumentation style to you) as undeserving of further of my time.
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
------------------------------
Date: Tue, 8 Jul 2008 14:45:33 -0700
From: "Gordon Corbin Etly" <gvinalcde@gmail.com>
Subject: Re: FAQ 1.12 What's the difference between "perl" and "Perl"?
Message-Id: <6di5fvF2n032U1@mid.individual.net>
Charlton Wilbur wrote:
>>>>>> "GCE" == Gordon Corbin Etly <gvinalcde@gmail.com> writes:
> > Please tell me where it says you cannot write "PERL" to mean
> > "Practical Extraction and Report Language" in short? Where is
> > it written that this explicitly cannot be done? That's all I
> > ask, and no one wants to give a real answer other than
> > reiterating the status quo. That is not the same as delivering
> > a concrete explaining of why it is wrong, and this is why I
> > continue to put forth that there is nothing inherently wrong.
> In an abstract sense, there's nothing inherently wrong with writing
> PERL. But, as has been explained to you at least a dozen times, this
> is a shibboleth that the core of the Perl community uses to
> distinguish between people who are in the Perl community and people
> who are not.
And I've been pointing out to people like yourself that this so called
"shibboleth" is flawed. As you point out, there is nothing inherently
wrong with writing "PERL", and even more so, it actually proves one has
read the words of Larry himself, whether directly or through other
sources (including perldoc.)
> If you write PERL, you are marking yourself as an outsider in the eyes
> of people who are at the core of the Perl community.
I strongly disagree. It shows you are a free thinking individual who
doesn't just conform because they are told to.
> Charity and politeness dictate that you should be informed of this;
> you have been.
And I started out by politely arguing that such claims didn't make sense
and that there wasn't anything inherently wrong with it.
> No, there's nothing technically wrong with PERL, expanded as you
> describe.
Agreed.
> Practically, it marks people who use it as either clueless
> novices, who haven't yet encountered the FAQ, or as argumentative
> twits, who have encountered the FAQ and choose to argue usage instead
> of doing something more productive with everyone's time.
So are you saying that if one chooses to use the words of Larry Wall
himself, they are clueless and a twit, all because an FAQ someone wrote
says otherwise? Do you mean to tell me an FAQ cannot be wrong? Come on,
you know better than that.
> the shibboleth serves a very useful purpose; it allows me to dismiss
> you
It's a shame that you do not want to be more flexible in the ideals you
believe in.
> (and, incidentally, your "cousin,"
If you must know, Way is my first cousin and we grew up together so
we're practically brothers. He lost his parent's when he was 3 and we've
were 7 up together since an we've always been close and yes we do tend
to think alike. We've had similar experiences and many shared interests,
including those pertaining to computer science, and so we have similar
views on many subjects (not all, but many), including the problem of
inflexibility among you.
--
Gordon C. Etly
Email: perl -e "print q{}.reverse(q{moc.liamg@ylte.nodrog})"
------------------------------
Date: Tue, 08 Jul 2008 11:50:36 -0700
From: fishfry <BLOCKSPAMfishfry@your-mailbox.com>
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <BLOCKSPAMfishfry-4C1173.11503608072008@comcast.dca.giganews.com>
In article <86hcb1mt5f.fsf@mithril.chromatico.net>,
Charlton Wilbur <cwilbur@chromatico.net> wrote:
> >>>>> "f" == fishfry <BLOCKSPAMfishfry@your-mailbox.com> writes:
>
> f> I speak as a frustrated longtime Perl developer who sees the jobs
> f> and the entire industry moving away from Perl not for technical
> f> reasons, but because the people who manage Perl killed the brand.
>
> This is not what I see at all.
>
> I've worked for three different companies in the past five or six years
> that wanted to hire more Perl people but couldn't find any.
>
First, thank you and the others who responded thoughtfully. I'm not
trying to stir up shit. I'm attempting to spark a call to action. I'm a
member of the Perl community who is very frustrated about the Perl 6
fiasco (and I do label it as such) and who believes it's time for us to
start speaking honestly about the situation, with the aim of remedying
it.
> So a company has two or three really good Perl people, who are getting
> the job done. Then they expand, and they look for more good Perl
> people. And what they find is that the people who know Perl fall into
> two broad groups: the relative newbies, who know just enough to be
> dangerous, and have lots of bad habits that will need to be broken; and
> the experts, who are already gainfully employed and need a *really*
> sweet offer to lure them away.
>
A far cry from 1999, when Perl built the Web. What happened? Perl 6
happened. First the announcement, which convinced many to stop paying
attention to Perl 5; and then the project itself, which never got done.
One article I read pointed out that if they had just called it Perl++,
none of this would have happened. People would have happily gone on
working in Perl 5; and Perl++ could then take as long as needed to
become as great as I'm sure it will eventually be.
But when you call it Perl 6 in 2002, and it doesn't show up by 2008, you
kill Perl 5. That's what happened. That's Osborning. And that's why
management can't find any skilled Perl developers.
> Sooner or later, some upper manager says, "Why are we using Perl when we
> can't find qualified Perl programmers? Hell, $university just graduated
> 2000 computer science majors who all need jobs, maybe we should be
> looking at Java instead." And then there's one fewer company using Perl
> for new development, and one fewer reason for all those newbie Perl
> programmers to develop professional programming skills; and the
> experienced Perl experts jump ship for another company.
>
> The managers who make long-term decisions don't know the difference
> between Perl 5 and Perl 6, and largely don't care. They know that if
> they use Perl, of either flavor, they can't find enough people to get
> the work done. This is doing more harm to Perl than anything else.
>
> f> My point, which is arguable but certainly not meaningless, is
> f> that if Perl 6 came out tomorrow and worked perfectly and
> f> implemented all possible features, it would still be a
> f> failure. It's years late, and the rest of the world has moved on.
>
> I don't think "failure" is the right word here. If Perl 6 works
> according to design, it will be both beautiful and useful, which is what
> it set out to be. It's an open-source project: popularity is not the
> primary, or even secondary or tertiary, criterion for success.
>
Absolutely agreed. Knowing who's involved, I'm certain that Perl 6 will
be wonderful. I'm not knocking the technical aspects. It's the
marketing. Again, if they called it Perl++ we wouldn't be having this
discussion. But they called it Perl 6 back in 2002. And now, in 2008,
something has to be done before even MORE developers give up on Perl and
there are even FEWER decent jobs for those who are left.
I'm trying to open the discussion. I'd like to decouple Perl 6 from Perl
in people's minds, so that we, the Perl community, can begin to
evangelize Perl 5 on its merits. Perl 5 compares favorably to everything
that's out there. The Perl 6 project has killed Perl 5 on marketing or
mindshare grounds. And something has to be done about that.
> And if you want to see how it might get adopted, don't look at the shift
> from Perl 4 to Perl 5; look at the shift from Perl or Java to Ruby,
> especially of the Ruby on Rails variety.
A number of others pointed out that a good developer should be working
in multiple languages. In fact I do. My concern today is for Perl. If I
go get a Ruby or Python or Java job, that doesn't address the problem
with Perl, or more precisely, with the industry opinion of Perl. Rather
than leave the community, I'm trying to take a stand. I've watched this
Perl 6 thing happen, and it's been ugly. It continues to be ugly. Not
the Perl 6 language. Not the people. The project.
Again, if in 2002 they'd said that Perl 6 is just an open-source hobby
for some smart people, and we should just ignore it and that Perl 5 is
still the main line, then the project would not have killed industry
adoption of Perl 5. That's the point you made above.
But they didn't do that. They said, Perl 6 is what's next. And then they
failed to deliver in a timely manner. We in the Perl community have the
right and the obligation to begin to speak out.
>
> Finally, if you want to be taken seriously, have the courtesy of signing
> your real name. If you don't take your words seriously enough to stand
> behind them, why should anyone else?
Internet anonymity is a choice I made some years ago. I hope my words
speak for themselves.
------------------------------
Date: Tue, 08 Jul 2008 15:26:30 -0400
From: Charlton Wilbur <cwilbur@chromatico.net>
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <86k5fwjhy1.fsf@mithril.chromatico.net>
>>>>> "f" == fishfry <BLOCKSPAMfishfry@your-mailbox.com> writes:
>> Finally, if you want to be taken seriously, have the courtesy of
>> signing your real name. If you don't take your words seriously
>> enough to stand behind them, why should anyone else?
f> Internet anonymity is a choice I made some years ago. I hope my
f> words speak for themselves.
I'm afraid, then, that I'm done here. Good luck in your advocacy
efforts.
Charlton
--
Charlton Wilbur
cwilbur@chromatico.net
------------------------------
Date: Tue, 8 Jul 2008 13:04:17 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <cfab62a1-192c-4b15-be01-c306780a4cb7@k30g2000hse.googlegroups.com>
On Jul 7, 3:05=A0pm, Sherman Pendley <spamt...@dot-app.org> wrote:
> Do you know anyone who's willing to pay for relocation to Boston? I'd
> love to get back up to Beantown. I'm stuck in the sticks right now,
> and it's a chicken-n-egg situation. Moving takes money, but I have to
> move to make any. :-(
>
> sherm--
sherm wants US to help HIM find a job? ARE YOU FUCKING JOKING???
ASSHOLE, nobody, not even your butt buddy Uri Guttman/Urine Buttman,
would PAY for your obnoxious self to move anywhere at all. I mean,
EVERYONE here hates your fucking guts, and you're one of the biggest
turds EVER on Usenet!!! There is no WAY that anyone who reads this
group would ever consider hiring you for ANYTHING!!! I'd suggest that
you go learn some people skills, but helpful people here have been
telling you that for YEARS, and nothing has changed. So enjoy your
miserable existence in West Virginia, the asshole of America. You
deserve each other!
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 13:10:01 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <31a5fb60-d80a-4943-8fa6-8bb7692a35f1@d1g2000hsg.googlegroups.com>
On Jul 7, 3:05=A0pm, Sherman Pendley <spamt...@dot-app.org> wrote:
> Charlton Wilbur <cwil...@chromatico.net> writes:
> > I've worked for three different companies in the past five or six years
> > that wanted to hire more Perl people but couldn't find any.
>
> Do you know anyone who's willing to pay for relocation to Boston? I'd
> love to get back up to Beantown. I'm stuck in the sticks right now,
> and it's a chicken-n-egg situation. Moving takes money, but I have to
> move to make any. :-(
>
> sherm--
sherm wants US to help HIM find a job??? You have GOT to be fucking
JOKING!!! Why in the world would anyone HERE want to help YOU???
You're a complete and utter asshole, and most people here hate your
fucking GUTS, you TURD. Enjoy your miserable existence in West
Virginia (America's asshole).
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 13:12:34 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <edd5c41b-8a93-40cf-9a55-20a23b0c3de4@25g2000hsx.googlegroups.com>
On Jul 7, 3:05=A0pm, Sherman Pendley <spamt...@dot-app.org> wrote:
> Charlton Wilbur <cwil...@chromatico.net> writes:
> > I've worked for three different companies in the past five or six years
> > that wanted to hire more Perl people but couldn't find any.
>
> Do you know anyone who's willing to pay for relocation to Boston? I'd
> love to get back up to Beantown. I'm stuck in the sticks right now,
> and it's a chicken-n-egg situation. Moving takes money, but I have to
> move to make any. :-(
>
> sherm--
sherm wants US to help HIM find a job??? Are you fscking JOKING???
After all the people that you have psssed off here behaving like a
complete assshole??? Everybody here hates your fscking guts!!!
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 13:14:19 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: Re: FAQ 1.4 What are Perl 4, Perl 5, or Perl 6?
Message-Id: <1e5fd28f-75ac-4601-afd0-b9aa2983bba2@z72g2000hsb.googlegroups.com>
On Jul 7, 3:05=A0pm, Sherman Pendley <spamt...@dot-app.org> wrote:
> Charlton Wilbur <cwil...@chromatico.net> writes:
> > I've worked for three different companies in the past five or six years
> > that wanted to hire more Perl people but couldn't find any.
>
> Do you know anyone who's willing to pay for relocation to Boston? I'd
> love to get back up to Beantown. I'm stuck in the sticks right now,
> and it's a chicken-n-egg situation. Moving takes money, but I have to
> move to make any. :-(
Get real, you jerk. Nobody here wants to help you, given your years of
obnoxious behavior on this group. Most people here hate your guts!
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 11:31:47 -0700 (PDT)
From: doug <douglass_davis@earthlink.net>
Subject: help with regular expression
Message-Id: <6ca4f9b4-a2eb-4fcb-a915-d90fc8d8a1c5@w7g2000hsa.googlegroups.com>
I am making a page to do a search.
The syntax is, you may group words with double quotes.
You may also add a + to signify a word must be present, or a - to
signify it shouldn't be present. Each "phrase" is separated by spaces
or commas.
So for example, all of these would be valid and can be combined by
separating them with spaces:
+"red blue"
+orange
purple
-green
"yellow red"
Is there a way to split this or match this using a regular expression?
------------------------------
Date: Tue, 08 Jul 2008 23:24:27 +0200
From: Leon Timmermans <fawaka@gmail.com>
Subject: Re: help with regular expression
Message-Id: <dd442$4873db0b$89e0e08f$31166@news1.tudelft.nl>
On Tue, 08 Jul 2008 11:31:47 -0700, doug wrote:
> I am making a page to do a search.
>
> The syntax is, you may group words with double quotes.
>
> You may also add a + to signify a word must be present, or a - to
> signify it shouldn't be present. Each "phrase" is separated by spaces
> or commas.
>
> So for example, all of these would be valid and can be combined by
> separating them with spaces:
>
> +"red blue"
> +orange
> purple
> -green
> "yellow red"
>
> Is there a way to split this or match this using a regular expression?
Hi,
I wouldn't put it all in a single regular expression, though that is
probably possible. This would be my solution:
local $_ = '+"red blue" +orange, purple -green, "yellow red"';
chomp;
s/ \A \s+ //msx;
while(m/ \G ([+-]?) (\w+) \s* ,? \s* /xgc or m/ \G ([+-]?) "([^"]+)"
\s* ,? \s*/xgc) {
my ($qualifier, $term) = ($1, $2);
print "Q='$qualifier'\nT=$term\n";
}
warn "Invalid search string\n" if length != pos;
If you're curious how it works I'd recommend you looking up the \G
assertion and the /gc modifiers in perlop.
Leon Timmermans
------------------------------
Date: Tue, 8 Jul 2008 13:17:23 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: it's me
Message-Id: <406c1fa0-ef61-4c20-9aa3-819379880a0b@e39g2000hsf.googlegroups.com>
perl
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 13:18:53 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: looking for boys
Message-Id: <481fbc44-a9c0-494e-809d-876d4537ebe6@k37g2000hsf.googlegroups.com>
write me back sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 13:17:54 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: macos
Message-Id: <bf3b09d8-b29b-411d-9be9-ee9077180a67@59g2000hsb.googlegroups.com>
sherm@dot-app.org
sherm@dot-app.org
sherm@dot-app.org
------------------------------
Date: Tue, 8 Jul 2008 14:47:55 -0700 (PDT)
From: williams.wilkie@gmail.com
Subject: Question regarding Encode
Message-Id: <443f304d-6556-47ac-87a6-45ffcc6486a5@x35g2000hsb.googlegroups.com>
Hello! If this is the wrong group my apologies. I'll accept pointing
in the right direction if there is one.
We have several users in our company cutting and pasting from Word
into our CMS and now have the need to convert from "Windows-1252" to
"utf-8"
for in-place editing I have been using
perl -MEncode=from_to -i -pe 'from_to($_, "windows-1252", "utf-8")'
file1.txt file2.txt
I am now needing to convert multiple files in a dir and another
developer mentioned that if UTF-8 and Windows-1252 are intermixed then
there could be some confusion of the two character sets together.
Transliteration was suggested..
tr/\x92/\N{RIGHT SINGLE QUOTATION MARK}/;
for example.
What I am wondering is if that is indeed the case. I don't want to
have to resort to transliteration if it isn't necessary.
Maybe I need some kind of check to see if a file is encoded a certain
way before figuring out how to jump into it. I can't ever remember
using Encode before and now we need it on a massive scope.
Any advice would be appreciated.
Wilkie
Flames go quietly to /dev/null
------------------------------
Date: Tue, 8 Jul 2008 13:16:37 -0700 (PDT)
From: sherman_is_aturd@yahoo.com
Subject: sherm wants a job?
Message-Id: <49bd560c-8b16-48f0-8d10-edc974efd4fb@l64g2000hse.googlegroups.com>
sherm@dot-app.org
Get real, sherm. Most people here hate your guts. You were even named
the "top turd of comp.lang.perl.misc" last year. You're nuts if you
think we'd help you.
------------------------------
Date: Tue, 08 Jul 2008 18:18:25 GMT
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Value of "Programming perl" 1st Ed.?
Message-Id: <x7skuk44un.fsf@mail.sysarch.com>
>>>>> "S" == Skyler <skyler@shaw.ca> writes:
S> No, that's your sorry rule. You have no authority to impose that on
S> anyone so stop kidding yourself, stop performing homo sexual acts in
S> public, and get a real life.
wow, you're a homophobe too! how typical of the angry loser who can't
get any perl action here.
>> i drain my diluted piss on you!! now go clean up and keep quiet.
S> Too late, I think Sherman already drank before it could hit the
S> ground. And why is it green? Have you been drinking anti-freeze again?
wow, such wit. i am ashamed to be sparring with you. that would win in
any high school lockerroom in the nation! and you will continue as you
seem to think i care. that is the real delusion. i don't care what you
think nor do most others here. but many here to like to read my perl
posts and sometimes my thrashing of little trolls.
i must have some wit or i wouldn't be the perl auctioneer for yapc::na
and oscon. i sell larry wall for lunch. maybe i could get $.05 for
selling you? nah. i will have to go with negative bidding.
anyhow, please respond. you just dig deeper and deeper. you have struck
your homophobic and high school vein with a self-inflicted wound. what
will happen if you and hit the motherlode of you witlessness? i shudder
to think!!
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
------------------------------
Date: Tue, 08 Jul 2008 13:01:30 -0700
From: Skyler <skyler@shaw.ca>
Subject: Re: Value of "Programming perl" 1st Ed.?
Message-Id: <fHPck.4843$cn7.3786@flpi145.ffdc.sbc.com>
Uri Guttman wrote:
>>>>>> "S" == Skyler <skyler@shaw.ca> writes:
>
> S> No, that's your sorry rule. You have no authority to impose that on
> S> anyone so stop kidding yourself, stop performing homo sexual acts in
> S> public, and get a real life.
>
> wow, you're a homophobe too! how typical of the angry loser who can't
> get any perl action here.
If "perl action" (and I thought you made big arguements about spelling
Perl right) means have to suck up to assholes like you, then no thanks.
I get plenty of "perl action" in my line of work. I make great wonderful
use of it, but that doesn't mean I'm going to pander to snotty pricks
like yourself in order to be successful.
> >> i drain my diluted piss on you!! now go clean up and keep quiet.
>
> S> Too late, I think Sherman already drank before it could hit the
> S> ground. And why is it green? Have you been drinking anti-freeze again?
>
> wow, such wit. i am ashamed to be sparring with you.
Yeah, unarmed people usually are.
-sky
------------------------------
Date: Tue, 8 Jul 2008 13:16:00 -0700 (PDT)
From: "comp.llang.perl.moderated" <ced@blv-sam-01.ca.boeing.com>
Subject: Re: Want regex s/// to replace only nth occurrence
Message-Id: <8129dfa5-3379-44a2-b1c7-1fab062d0623@m3g2000hsc.googlegroups.com>
On Jul 6, 6:58 am, Dave B <da...@addr.invalid> wrote:
> jerrykrin...@gmail.com wrote:
> > my $s = "The sneaky cat sneaked sneakily." ;
>
> > I would like a simple s/// statement which would replace only the $nth
> > occurrence of "sneak". ($n is a variable). Can't find the answer.
> > Is this possible?
>
> With sed it's trivial. With Perl, I'd do this:
>
> my $x=0;my $n=3;
>
> while($s=~/sneak/g) {
> if (++$x==$n) {
> $s=~s/sneak\G/replacement/;
# yet another alternative
substr($s, $-[0], $+[0]-$-[0]) = "...";
> last;
> }
>
> }
Yet another alternative:
------------------------------
Date: Tue, 8 Jul 2008 20:35:55 +0000 (UTC)
From: Konstantinos Agouros <elwood@agouros.de>
Subject: XML::DOM question
Message-Id: <1215549355.97681@rumba>
Hi,
if XML::DOM fails in getElementsByTagName by Script terminates. Is there
a way to catch this?
Regards,
Konstantin
--
Dipl-Inf. Konstantin Agouros aka Elwood Blues. Internet: elwood@agouros.de
Otkerstr. 28, 81547 Muenchen, Germany. Tel +49 89 69370185
----------------------------------------------------------------------------
"Captain, this ship will not survive the forming of the cosmos." B'Elana Torres
------------------------------
Date: Tue, 08 Jul 2008 17:36:53 -0400
From: Sherman Pendley <spamtrap@dot-app.org>
Subject: Re: XML::DOM question
Message-Id: <m1prpo5a8a.fsf@dot-app.org>
Konstantinos Agouros <elwood@agouros.de> writes:
> if XML::DOM fails in getElementsByTagName by Script terminates. Is there
> a way to catch this?
Does is fail immediately, when you call this method? If so, you could
try wrapping the call in a block eval:
eval {
my $nodeList = $doc->getElementsByTagName('FOO');
}
if ($@) {
# Handle the failure
warn $@;
}
Of course, if it's failing later because you're calling a method on
$nodeList and it's undef, then answer is even simpler - don't do
that. :-) Instead, check to see if $nodeList is defined before using
it.
sherm--
--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
------------------------------
Date: Tue, 8 Jul 2008 22:46:11 +0100
From: Ben Morrow <ben@morrow.me.uk>
Subject: Re: XML::DOM question
Message-Id: <3q3dk5-8um1.ln1@osiris.mauzo.dyndns.org>
Quoth Konstantinos Agouros <elwood@agouros.de>:
>
> if XML::DOM fails in getElementsByTagName by Script terminates. Is there
> a way to catch this?
perldoc -f eval
Ben
--
'Deserve [death]? I daresay he did. Many live that deserve death. And some die
that deserve life. Can you give it to them? Then do not be too eager to deal
out death in judgement. For even the very wise cannot see all ends.'
ben@morrow.me.uk
------------------------------
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 1702
***************************************