[30347] in Perl-Users-Digest
Perl-Users Digest, Issue: 1590 Volume: 11
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu May 29 21:14:31 2008
Date: Thu, 29 May 2008 18:14:23 -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 Thu, 29 May 2008 Volume: 11 Number: 1590
Today's topics:
Re: Perl vs. Php <bill@ts1000.us>
Re: Perldoc recommendation <hjp-usenet2@hjp.at>
Re: Perldoc recommendation <hjp-usenet2@hjp.at>
Re: Perldoc recommendation <jurgenex@hotmail.com>
Re: Remove a tab with backspace? <szrRE@szromanMO.comVE>
Re: Remove a tab with backspace? <No_4@dsl.pipex.com>
Re: Remove a tab with backspace? <m@rtij.nl.invlalid>
Re: The Importance of Terminology's Quality (David Combs)
Re: The Importance of Terminology's Quality (David Combs)
Re: The Importance of Terminology's Quality (David Combs)
Re: Using perl locally on a Windows XP system <hjp-usenet2@hjp.at>
Re: Using perl locally on a Windows XP system <bill@ts1000.us>
Re: Using perl locally on a Windows XP system <jurgenex@hotmail.com>
VERY SORRY FOR THAT CROSSPOST; Re: The Importance of Te (David Combs)
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 29 May 2008 15:48:21 -0700 (PDT)
From: Bill H <bill@ts1000.us>
Subject: Re: Perl vs. Php
Message-Id: <06dab14d-0760-4936-b72d-6453c7084cd2@59g2000hsb.googlegroups.com>
On May 29, 1:58=A0pm, xhos...@gmail.com wrote:
> Bill H <b...@ts1000.us> wrote:
> > Preface: This is not a flame war, please don't turn it into one.
>
> > I am involved in a very large project that =A0will be doing a lot of
> > talking to Postgres databases (possibly using a a RST middleware).
>
> I don't know what RST middleware is. =A0A quick google hasn't enlightened =
me.
> If it is some kind of object-relational mapping, then it might be a pain t=
o
> use two different languages to access it.
>
My mistake Xho, should have typed REST (Representational State
Transfer).
> > The
> > database guys want to use php for all of their stuff, I want to use
> > perl for mine.
>
> What stuff is "your" stuff? =A0What do "database guys" do? =A0I mean, if t=
hey
> just do back-up and tuning, who cares what language they use? =A0Is this o=
ne
> of those pathological cases where the DBAs claim all the interesting thing=
s
> to be in their domain and all the tedious things to be yours, while you ar=
e
> claiming the opposite?
>
My stuff is all the fun stuff. Flash interfaces, perl code to create
pdf files, multi-media files and the like based on what is done in the
flash interface. Their stuff is the user databases, store database,
project database etc that contains all the information that I use in
my stuff.
> > The reasons I want to use perl are:
>
> > 1) I have been working in it for 10+ years
>
> Presumably they have been working in their favorite language for a while,
> too.
>
> > 2) I have 10's of thousands lines of code written (some very complex
> > creating pdf's on the fly etc)
>
> Are these very complex things going to part of the system you are now
> working on? =A0Are they going to be the *main* part of it?
>
Yes, the complex code actually creates the products that are sold, so
without them there wouldn't be a need for the databases.
> > Is there a valid reason I should switch to php versus perl (or vice
> > versa they switch to perl)? Portability, ease of maintaining, speed of
> > execution, security etc?
>
> Xho
>
> --
> --------------------http://NewsReader.Com/--------------------
> The costs of publication of this article were defrayed in part by the
> payment of page charges. This article must therefore be hereby marked
> advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate=
> this fact.
------------------------------
Date: Thu, 29 May 2008 23:23:13 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: Perldoc recommendation
Message-Id: <slrng3u7m5.t8u.hjp-usenet2@hrunkner.hjp.at>
On 2008-05-28 20:19, Jürgen Exner <jurgenex@hotmail.com> wrote:
> Back you go to where you crawled out from.
> Author: Gordon Etly <get@bentsys.com>
> Author: Gordon Etly <getly@bentsys-INVALID.com>
> Author: Gordon Etly <g.etly@bent-INVALID-sys.com>
> Author: Gordon Etly <g.etly@bentsys.INVALID.com>
> Author: Gordon Etly <.@.invalid>
> Author: Gordon Etly <g@e.nvalid>
Can you please learn how to use regular expressions in your killfile?
hp
------------------------------
Date: Thu, 29 May 2008 23:26:01 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: Perldoc recommendation
Message-Id: <slrng3u7ra.t8u.hjp-usenet2@hrunkner.hjp.at>
On 2008-05-26 19:42, Uri Guttman <uri@stemsystems.com> wrote:
> perldoc.perl.org has all the docs in an easy to navigate and
> search format.
| For quicker navigation, enter any Perl function, manpage, or core
| module name into the search box
Search box? What search box? Ah, I have to allow JavaScript! ;-).
hp
------------------------------
Date: Thu, 29 May 2008 22:42:38 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: Perldoc recommendation
Message-Id: <j6cu3413asb3skcriicbh5g6gm5qubvfem@4ax.com>
"Peter J. Holzer" <hjp-usenet2@hjp.at> wrote:
>On 2008-05-28 20:19, Jürgen Exner <jurgenex@hotmail.com> wrote:
>> Back you go to where you crawled out from.
>> Author: Gordon Etly <get@bentsys.com>
>> Author: Gordon Etly <getly@bentsys-INVALID.com>
>> Author: Gordon Etly <g.etly@bent-INVALID-sys.com>
>> Author: Gordon Etly <g.etly@bentsys.INVALID.com>
>> Author: Gordon Etly <.@.invalid>
>> Author: Gordon Etly <g@e.nvalid>
>
>Can you please learn how to use regular expressions in your killfile?
Done now.
jue
------------------------------
Date: Thu, 29 May 2008 13:36:11 -0700
From: "szr" <szrRE@szromanMO.comVE>
Subject: Re: Remove a tab with backspace?
Message-Id: <g1n43s01kh1@news4.newsguy.com>
nolo contendere wrote:
> On May 29, 12:08 pm, "szr" <sz...@szromanMO.comVE> wrote:
>> RedGrittyBrick wrote:
>>> bugbear wrote:
>>>> valerie.seign...@googlemail.com wrote:
>>>>> Hi,
>>
>>>>> I'd like to use "\b" to delete a tab character, but it doesn't
>>>>> seem to work. I've found several posts about the backspace
>>>>> character, but none about this particular problem.
>>
>>>>> perl -e 'print "AB\bC\n";'
>>>>> works fine and prints "AC"
>>
>>>> No it doesn't. Try piping it to a hex dump program, or to a file,
>>>> and examine what you get.
>>
>>> Or try this
>>> $ perl -e 'print "12\b\n"'
>>> 12
>>
>>> --
>>> RGB
>>
>> Actually his example does print AC in my term, though yours does
>> print
>> 12. I'm not sure I understand why yours doesn't print just 1 as one
>> night think it would ?
>
>
> $ perl -e 'print "12\b"'
> 1$
That's not what I get:
$ perl -e 'print "12\b"'
12
but:
$ perl -e 'print "AB\bC\n";'
AC
I get the same results for both lines in several different terminals on
my Linux system as well as several ssh clients. Also tested on my WinXP
Pro system with ActiveState 5.6.1, 5.8.8, and 5.10.0, and cygwin 5.8.8
(both in bash via cmd.exe and rxvt.)
This seem inconsistent, both in that the first line always seems to
print 12 instead of just 1, and that it printed 1 for you. What and how
did you run your test(s) ?
--
szr
------------------------------
Date: Fri, 30 May 2008 00:39:25 +0100
From: Big and Blue <No_4@dsl.pipex.com>
Subject: Re: Remove a tab with backspace?
Message-Id: <WvCdnXHthfYzo6LVnZ2dnUVZ8uednZ2d@pipex.net>
szr wrote:
> What and how did you run your test(s) ?
>
You should ask yourself the same question. Stop thinking that what you see
in the end is all that has happened.
A backspace, juts like a tab, or just like an A is just a character (or, in
this case, just a byte). How this is acted on depends upon what is
processing it. If you put \b into a file then the file contain a \x08 byte
It does not delete the preceding character, as that isn't how files work.
If it is echoed to a display terminal then it *may* move the cursor back a
character, it *may* remove that character from the display to it could do
something else - it will all depend on what is displaying the result. So
it's a function of the display. It is not a function of a file, of text
processing or of Perl.
--
Just because I've written it doesn't mean that
either you or I have to believe it.
------------------------------
Date: Fri, 30 May 2008 02:11:12 +0200
From: Martijn Lievaart <m@rtij.nl.invlalid>
Subject: Re: Remove a tab with backspace?
Message-Id: <pan.2008.05.30.00.11.11@rtij.nl.invlalid>
On Thu, 29 May 2008 13:36:11 -0700, szr wrote:
> That's not what I get:
>
> $ perl -e 'print "12\b"'
> 12
>
>
> but:
>
> $ perl -e 'print "AB\bC\n";'
> AC
>
>
> I get the same results for both lines in several different terminals on
> my Linux system as well as several ssh clients. Also tested on my WinXP
> Pro system with ActiveState 5.6.1, 5.8.8, and 5.10.0, and cygwin 5.8.8
> (both in bash via cmd.exe and rxvt.)
>
> This seem inconsistent, both in that the first line always seems to
> print 12 instead of just 1, and that it printed 1 for you. What and how
> did you run your test(s) ?
Really weird.
You should have gotten either 1$ or 12$ on any unixisch system. Yet you
say you get 12. I suspect, you omitted something, or added something.
M4
------------------------------
Date: Fri, 30 May 2008 00:22:36 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: Re: The Importance of Terminology's Quality
Message-Id: <g1nhcc$d5e$1@reader2.panix.com>
In article <68i6b5F2soauaU1@mid.individual.net>,
Waylen Gumbal <wgumgfy@gmail.com> wrote:
>Sherman Pendley wrote:
>> kodifik@eurogaran.com writes:
>> >
>> > > PLEASE DO NOT | :.:\:\:/:/:.:
>> > > FEED THE TROLLS | :=.' - - '.=:
>> >
>> > I don't think Xah is trolling here (contrary to his/her habit)
>> > but posing an interesting matter of discussion.
>>
>> It might be interesting in the abstract, but any such discussion, when
>> cross-posted to multiple language groups on usenet, will inevitably
>> devolve into a flamewar as proponents of the various languages argue
>> about which language better expresses the ideas being talked about.
>> It's like a law of usenet or something.
>>
>> If Xah wanted an interesting discussion, he could have posted this to
>> one language-neutral group such as comp.programming. He doesn't want
>> that - he wants the multi-group flamefest.
>
>Not everyone follows language-neutral groups (such as comp,programming
>as you pointed out), so you actually reach more people by cross posting.
>This is what I don't understand - everyone seems to assume that by cross
>posting, one intends on start a "flamefest", when in fact most such
>"flamefests" are started by those who cannot bring themselves to
>skipping over the topic that they so dislike.
>
>--
>wg
Not one person on the planet agrees with me, I believe, but
it's always seemed to me that an *advantage* to posting to
multiple groups (especially ones generally "interested" in similar
subject matter but NOT subject to huge poster/lurker/answerer overlap,
er, without too many *people* getting multiple copies of the *same*
post) is that it would provide an opportunity of a widely-dispersed
bunch of people to have a *joint* discussion, with comments hopefully
coming in from a *variety* of viewpoints.
David
------------------------------
Date: Fri, 30 May 2008 00:31:12 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: Re: The Importance of Terminology's Quality
Message-Id: <g1nhsg$1tn$1@reader2.panix.com>
In article <UNadnSyhW72Ci7vVnZ2dnUVZ_uSdnZ2d@comcast.com>,
Lew <lew@lewscanon.com> wrote:
>...
>Good, then please have the courtesy not to include comp.lang.java.programmer
>in the distribution for this thread any longer.
>--
>Lew
Totally independently of whether cross-posting is *always* bad or not, I make
the mere comment that the logic of your request is that *you* are the (official?)
spokesman for cljp. :-)
David
------------------------------
Date: Fri, 30 May 2008 00:56:37 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: Re: The Importance of Terminology's Quality
Message-Id: <g1njc5$p1i$1@reader2.panix.com>
In article <rem-2008may08-005@yahoo.com>,
Robert Maas, http://tinyurl.com/uh3t <usenet1.3.CalRobert@SpamGourmet.Com> wrote:
>> From: "xah...@gmail.com" <xah...@gmail.com>
>> the importance of naming of functions.
>
Lisp is *so* early a language (1960?), preceeded mainly only by Fortran (1957?)?,
and for sure the far-and-away the first as a platform for *so many* concepts
of computer-science, eg lexical vs dynamic ("special") variables, passing
*unnamed* functions as args (could Algol 60 also do something like that,
via something it maybe termed a "thunk"), maybe is still the only one
in which program and data have the same representation -- that it'd
seem logical to use it's terminology in all languages.
From C is the very nice distinction between "formal" and "actual" args.
And from algol-60, own and local -- own sure beats "static"!
And so on.
To me, it's too bad that that hacker-supreme (and certified genius)
Larry W. likes to make up his own terminology for Perl. Sure makes
for a lot of otherwise-unnecessary pages in the various Perl texts,
as well as posts here.
Of course, a whole lot better his terminology than no language at all!
David
------------------------------
Date: Fri, 30 May 2008 00:20:11 +0200
From: "Peter J. Holzer" <hjp-usenet2@hjp.at>
Subject: Re: Using perl locally on a Windows XP system
Message-Id: <slrng3ub0s.t8u.hjp-usenet2@hrunkner.hjp.at>
On 2008-05-28 13:50, Jürgen Exner <jurgenex@hotmail.com> wrote:
> Bill H <bill@ts1000.us> wrote:
>>So my question is, how do I setup the XP system to act as a server
>>locally so that the perl code will execute as cgi. Any clues -
>>pointers - links are appreciated.
>
> Oh, you are not talking about Perl at all, you are talking about an HTTP
> server. The "best" way to do that is to install a proxy server, which
> redirects all requests to your test environment, in this case to
> localhost.
What do you need the proxy for?
hp
------------------------------
Date: Thu, 29 May 2008 15:39:49 -0700 (PDT)
From: Bill H <bill@ts1000.us>
Subject: Re: Using perl locally on a Windows XP system
Message-Id: <d3eb4881-6b05-4087-b6bf-5ab61a13a138@34g2000hsh.googlegroups.com>
Sinan
On May 28, 5:33=A0pm, "A. Sinan Unur" <1...@llenroc.ude.invalid> wrote:
> Bill H <b...@ts1000.us> wrote in news:6ab8640b-5582-4edf-b1db-
> f38fa99b1...@e53g2000hsa.googlegroups.com:
>
> > This is not particullary a perl question but applies.
>
> No it does not.
>
Yes it does apply, per the subject line, "Using perl locally on a
Windows XP system"
> > I do all my perl development
>
> s/perl/Perl/
>
perl , Perl does it matter in the context of a message (at least it
aint spelt Pearl). Someday google may include a user strict; command,
till then...
> > interfaces. What I would like to do is setup the XP system so I can
> > run the perl locally. For example, with the flash programs I write you
> > are not allowed to cross domains, so the flash file must reside on the
> > same system as the perl (cgi) that it communicates with. Since this is
> > the case I can not run these flash files within the developer and have
> > all the debugging features.
>
> So, you are asking how to set up and configure a webserver on your
> system. That does not have anything to do with Perl.
>
You conviently cut out the question:
"So my question is, how do I setup the XP system to act as a server
locally so that the perl code will execute as cgi. Any clues -
pointers - links are appreciated. "
and instead responded to the lead up. I was asking for clues /
pointers, not grammer check. BTW thank you prawn, gunnar, peter and
jurgen for your suggestions.
> > I am sure there are a number of you
> > who have already set their system to do this.
>
> Of course. And, it is trivial to do so.
So you could have said "It is trivial to do so, check out this site,
or google for this software." Probably would have been faster on your
end and would have gotten a "thank you sinan" and a few nice thoughts
on my end.
>
> Sinan
> --
> A. Sinan Unur <1...@llenroc.ude.invalid>
> (remove .invalid and reverse each component for email address)
>
> comp.lang.perl.misc guidelines on the WWW:http://www.rehabitation.com/clpm=
isc/
------------------------------
Date: Thu, 29 May 2008 22:42:12 GMT
From: Jürgen Exner <jurgenex@hotmail.com>
Subject: Re: Using perl locally on a Windows XP system
Message-Id: <bvbu34178uscb6op80qm75bt4hel8e4076@4ax.com>
"Peter J. Holzer" <hjp-usenet2@hjp.at> wrote:
>On 2008-05-28 13:50, Jürgen Exner <jurgenex@hotmail.com> wrote:
>> Bill H <bill@ts1000.us> wrote:
>>>So my question is, how do I setup the XP system to act as a server
>>>locally so that the perl code will execute as cgi. Any clues -
>>>pointers - links are appreciated.
>>
>> Oh, you are not talking about Perl at all, you are talking about an HTTP
>> server. The "best" way to do that is to install a proxy server, which
>> redirects all requests to your test environment, in this case to
>> localhost.
>
>What do you need the proxy for?
A proxy server is the easiest method to redirect traffic between the
live and test site. Just point your browser to the proxy server and any
configuration about which parts of your site should be loaded from where
(test or live) can be done centrally on the proxy server.
Of course this has nothing to do with Perl.
jue
------------------------------
Date: Fri, 30 May 2008 01:08:47 +0000 (UTC)
From: dkcombs@panix.com (David Combs)
Subject: VERY SORRY FOR THAT CROSSPOST; Re: The Importance of Terminology's Quality
Message-Id: <g1nk2v$6f8$1@reader2.panix.com>
(This one is also cross-posted, to apologize to one and all
about my just-prior followup.)
I stupidly didn't remember that whatever followup I made
would also get crossposted until *after* I had kneejerked
hit "s" (send) before I noticed the warning (Pnews?) on
just how many groups it would be posted to.
A suggestion for Pnews: that as soon as you give the
F (followup for trn), ie as soon as Pnews starts-up
on this followup, before you've typed in anything
or given it a filename to include, that AT THAT TIME
it remind you that it'll be crossposted to the
following 25 newsgroups:
1: foo
2: comp.lang.perl.misc
3: other-group
4: ...
, so way before you've said anything, you can
abort it if you want to.
SORRY!
David
------------------------------
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 1590
***************************************