[26235] in Perl-Users-Digest
Perl-Users Digest, Issue: 8420 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Sep 15 00:05:21 2005
Date: Wed, 14 Sep 2005 21:05:05 -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 Wed, 14 Sep 2005 Volume: 10 Number: 8420
Today's topics:
Re: FAQ 9.16 How do I decode a CGI form? <tadmc@augustmail.com>
Re: Newbie Q: Is it Possible to ? <tadmc@augustmail.com>
Re: Newbie Q: Is it Possible to ? (aka ? the Platypus)
Re: Opening many txt files <tadmc@augustmail.com>
Re: Perl DBI / SQL Question <vma_nntp@vmacs.us>
Re: Perl DBI / SQL Question <kevin@vaildc.net>
Re: Perl DBI / SQL Question <bill@karwin.com>
Re: Perl DBI / SQL Question <vma_nntp@vmacs.us>
Re: Perl DBI / SQL Question (Gordon Burditt)
Re: Perl DBI / SQL Question <vma_nntp@vmacs.us>
Re: Perl portability <jgibson@mail.arc.nasa.gov>
Re: Perl portability <sherm@dot-app.org>
Re: Perl portability <1usa@llenroc.ude.invalid>
Re: sorting data - hash vs. list <Fred@fred.net>
Re: sorting data - hash vs. list <tadmc@augustmail.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Wed, 14 Sep 2005 16:13:18 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: FAQ 9.16 How do I decode a CGI form?
Message-Id: <slrndih4je.46a.tadmc@magna.augustmail.com>
Babacio <babacio@free.fr> wrote:
> xhoster@gmail.com.
>
>>> Well, actually it should be:
>>>
>>> my @items = param('item'); #multiple values, same field
>>>
>>> It's not difficult to see why newbies persist in (ab)using double quotes
>>> every- where, when even the FAQ does it. :-(
>>
>> Why is it abusive to use double quotes in that manner?
>
> Because you should use double quotes only if you want variable
> replacement?
Or if you want backslash escapes.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 14 Sep 2005 17:07:34 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Newbie Q: Is it Possible to ?
Message-Id: <slrndih7p6.46a.tadmc@magna.augustmail.com>
Harvey Rothenberg <hrberg@infinet.com> wrote:
> Subject: Newbie Q: Is it Possible to ?
Please put the subject of your article in the Subject of your article.
> I hope someone can provide some reliable information and direction.
Please start with the Posting Guidelines that are posted here frequently.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 14 Sep 2005 22:25:17 GMT
From: "David Formosa (aka ? the Platypus)" <dformosa@dformosa.zeta.org.au>
Subject: Re: Newbie Q: Is it Possible to ?
Message-Id: <slrndih813.ajn.dformosa@dformosa.zeta.org.au>
On Wed, 14 Sep 2005 14:16:24 -0400, Harvey Rothenberg <hrberg@infinet.com> wrote:
> To Whom It May Concern :
>
> I am new to Perl. I am looking for direction as to being able to compile
> self running programs regardless of OS with Perl. I know that it is capable
> to compile a Perl program ( which I have not done yet either)
Ok I think we should take a step backwards, what is the problem your
trying to solve? For most things compilation isn't the solution.
--
Please excuse my spelling as I suffer from agraphia. See
http://dformosa.zeta.org.au/~dformosa/Spelling.html to find out more.
Free the Memes.
------------------------------
Date: Wed, 14 Sep 2005 16:54:18 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: Opening many txt files
Message-Id: <slrndih70a.46a.tadmc@magna.augustmail.com>
Tony Heagren <tony@heagren.com> wrote:
> So I posted it again from a different source.
> Got a problem with that ?
I do.
In fact, I believe that most people in all usenet groups would have
a problem with that.
You have broken standard netiquette, take your lumps like a man
rather than attempt to weasel out of it.
> This is not a chat room -
That's right.
It can take hours or days to get responses on usenet.
You waited 39 minutes, like you were expecting chat-like response
times rather than usenet-like response times.
In other words, ASU diagnosed the problem perfectly!
You do not know how usenet works.
> neither is it your place to give lessons in
> etiquette.
You should perhaps learn a little bit of usenet and netiquette
yourself *before* you begin lecturing those who do.
So long!
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Wed, 14 Sep 2005 18:07:24 -0600
From: "Vance M. Allen" <vma_nntp@vmacs.us>
Subject: Re: Perl DBI / SQL Question
Message-Id: <hX2We.67$4V2.3443@news.uswest.net>
I see where you're going with this, and I like it much better than what I
have. I have a question about it though. I currently have phpMyAdmin set
up to do hard edits to the data in my database when needed, and every time
I'm on the database structure page, I receive a message:
"The additional Features for working with linked Tables have been
deactivated."
Am I going to be able to use "REFERENCES" in the table definition with this
being the case? If not, do you know what I need to do in order to correct
this problem?
Thanks,
Vance
------------------------------
Date: Thu, 15 Sep 2005 00:45:02 GMT
From: Kevin Michael Vail <kevin@vaildc.net>
Subject: Re: Perl DBI / SQL Question
Message-Id: <kevin-AE3246.20450214092005@news.verizon.net>
In article <hX2We.67$4V2.3443@news.uswest.net>,
"Vance M. Allen" <vma_nntp@vmacs.us> wrote:
> I see where you're going with this, [...]
You see where who is going with what? Please quote the relevant parts
of the post you're responding to, which is long-standing Usenet practice.
--
Kevin Michael Vail | a billion stars go spinning through the night,
kevin@vaildc.net | blazing high above your head.
. . . . . . . . . | But _in_ you is the presence that
. . . . . . . . | will be, when all the stars are dead.
. . . . . . . . . | (Rainer Maria Rilke)
------------------------------
Date: Wed, 14 Sep 2005 17:43:37 -0700
From: Bill Karwin <bill@karwin.com>
Subject: Re: Perl DBI / SQL Question
Message-Id: <dgag27021fi@enews3.newsguy.com>
Vance M. Allen wrote:
> "The additional Features for working with linked Tables have been
> deactivated."
This is a new one for me. Fortunately google helps with all things:
http://www.psoft.net/HSdocumentation/sysadmin/phpmyadmin_linked_tables.html
Regards,
Bill K.
------------------------------
Date: Wed, 14 Sep 2005 20:21:53 -0600
From: "Vance M. Allen" <vma_nntp@vmacs.us>
Subject: Re: Perl DBI / SQL Question
Message-Id: <lV4We.72$4V2.4109@news.uswest.net>
> You see where who is going with what? Please quote the relevant parts
> of the post you're responding to, which is long-standing Usenet practice.
I saw where Bill was going with the entire message he wrote. As I wrote it
as a reply to his message, causing it to be part of the same thread, I did
not realize it was necessary to re-post the entire message. I will try
harder to meet Usenet etiquette. Apologies to anyone affected by my failure
to do so.
Vance
------------------------------
Date: Thu, 15 Sep 2005 02:44:38 -0000
From: gordonb.h57un@burditt.org (Gordon Burditt)
Subject: Re: Perl DBI / SQL Question
Message-Id: <11iho0m8rn58a20@corp.supernews.com>
>I see where you're going with this, and I like it much better than what I
>have. I have a question about it though. I currently have phpMyAdmin set
>up to do hard edits to the data in my database when needed, and every time
>I'm on the database structure page, I receive a message:
>
>"The additional Features for working with linked Tables have been
>deactivated."
As I recall, this type of message comes up for a number of reasons
relating to the database (often called 'phpmyadmin') used by
phpMyAdmin to store some of its own data. I think the problem is:
- It can't log into the database (or has the wrong name for
it) or doesn't have permissions on the tables it needs.
- You didn't create the database or tables for it.
I think the features that have been deactivated refer to making
diagrams of the relationships between tables and such, not using
references, which is a MySQL, not phpMyAdmin, feature.
Gordon L. Burditt
------------------------------
Date: Wed, 14 Sep 2005 21:13:47 -0600
From: "Vance M. Allen" <vma_nntp@vmacs.us>
Subject: Re: Perl DBI / SQL Question
Message-Id: <0G5We.77$4V2.4448@news.uswest.net>
"Gordon Burditt" <gordonb.h57un@burditt.org> wrote in message
news:11iho0m8rn58a20@corp.supernews.com...
>>"The additional Features for working with linked Tables have been
>>deactivated."
>
> I think the features that have been deactivated refer to making
> diagrams of the relationships between tables and such, not using
> references, which is a MySQL, not phpMyAdmin, feature.
"Bill Karwin" <bill@karwin.com> wrote in message
news:dgag27021fi@enews3.newsguy.com...
> http://www.psoft.net/HSdocumentation/sysadmin/phpmyadmin_linked_tables.html
Thank you Gordon. I did the steps on the page Bill provided for me, and it
resolved the message in phpMyAdmin, but I didn't really see anything in
phpMyAdmin afterward that seemed relevant to my issue. I'm going to try his
SQL and we'll see if it works.
Thanks for everyone's help.
Vance
------------------------------
Date: Wed, 14 Sep 2005 17:31:51 -0700
From: Jim Gibson <jgibson@mail.arc.nasa.gov>
Subject: Re: Perl portability
Message-Id: <140920051731513247%jgibson@mail.arc.nasa.gov>
In article <dga257$503$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>, Hendry
Taylor <hendry.taylor@btinternet.com> wrote:
> I wrote a perl script and tested it on windows and it works fine. I then
> moved it onto a solaris machine and now it says that there is a syntax
> error with the following line of code:
>
> $user1 = "User name: ".$rec1[0];
>
> the line of code just before that is:
>
> @rec1 = split(/@/, $autotrack[$records]);
>
>
> any ideas?
> I can't see that there is anything uniquely windows about that. There is
> a difference in the version of perl in that on the windows box I have
> active state v5.8.6 and the solaris box has solaris perl 5.00.3 or
> something like that.
I see nothing wrong with those two lines, either. They compile fine on
my non-windows machine also running 5.8.6. It probably has more to do
with the very old version of Perl running on your Solaris system, but
the line in question would seem to be acceptable Perl 4, so I have no
idea what the problem is.
Since this newsgroup is defunct, you have a much higher probability of
getting your problem solved if you pose your question to
comp.lang.perl.misc. It is best to post a complete, short program that
illustrates your problem.
What does 'perl -v' produce on your Solaris system?
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
------------------------------
Date: Wed, 14 Sep 2005 20:49:03 -0400
From: Sherm Pendley <sherm@dot-app.org>
Subject: Re: Perl portability
Message-Id: <m2r7brrw8w.fsf@Sherm-Pendleys-Computer.local>
Jim Gibson <jgibson@mail.arc.nasa.gov> writes:
> In article <dga257$503$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>, Hendry
> Taylor <hendry.taylor@btinternet.com> wrote:
>
>> I wrote a perl script and tested it on windows and it works fine. I then
>> moved it onto a solaris machine and now it says that there is a syntax
>> error with the following line of code:
>>
>> $user1 = "User name: ".$rec1[0];
>>
>> the line of code just before that is:
>>
>> @rec1 = split(/@/, $autotrack[$records]);
>>
> Since this newsgroup is defunct, you have a much higher probability of
> getting your problem solved if you pose your question to
> comp.lang.perl.misc.
He did - it's cross-posted. (I've removed the defunct group from the list
for this message.)
I can't see anything wrong with the posted code either - but it's been so
long since I've used 5.003 that I'm basically just guessing. :-(
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
Date: Thu, 15 Sep 2005 01:29:15 GMT
From: "A. Sinan Unur" <1usa@llenroc.ude.invalid>
Subject: Re: Perl portability
Message-Id: <Xns96D1DA93D82E7asu1cornelledu@127.0.0.1>
Sherm Pendley <sherm@dot-app.org> wrote in
news:m2r7brrw8w.fsf@Sherm-Pendleys-Computer.local:
> Jim Gibson <jgibson@mail.arc.nasa.gov> writes:
>
>> In article <dga257$503$1@nwrdmz02.dmz.ncs.ea.ibs-infra.bt.com>,
>> Hendry Taylor <hendry.taylor@btinternet.com> wrote:
>>
>>> I wrote a perl script and tested it on windows and it works fine. I
>>> then moved it onto a solaris machine and now it says that there is a
>>> syntax error with the following line of code:
>>>
>>> $user1 = "User name: ".$rec1[0];
>>>
>>> the line of code just before that is:
>>>
>>> @rec1 = split(/@/, $autotrack[$records]);
>>>
>> Since this newsgroup is defunct, you have a much higher probability
>> of getting your problem solved if you pose your question to
>> comp.lang.perl.misc.
>
> He did - it's cross-posted. (I've removed the defunct group from the
> list for this message.)
>
> I can't see anything wrong with the posted code either - but it's been
> so long since I've used 5.003 that I'm basically just guessing. :-(
Well, I think it is quite necessary for the OP to try and produce the
proverbial shortest script that still exhibits the problem. Frequently,
syntax error messages are caused by somewhere other than the lines
reported.
Sinan
--
A. Sinan Unur <1usa@llenroc.ude.invalid>
(reverse each component and remove .invalid for email address)
comp.lang.perl.misc guidelines on the WWW:
http://mail.augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
------------------------------
Date: Wed, 14 Sep 2005 17:24:19 -0500
From: "Fred@fred.net" <Fred@fred.net>
Subject: Re: sorting data - hash vs. list
Message-Id: <ei7hi19pqq9jl86igp1bev4q09otkpqk0a@4ax.com>
On Mon, 12 Sep 2005 20:41:23 -0500, Tad McClellan <tadmc@augustmail.com> wrote:
>Fred@fred.net <Fred@fred.net> wrote:
>> On Sun, 11 Sep 2005 22:30:59 GMT, "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote:
>>
>>>"Fred@fred.net" <Fred@fred.net> wrote in
>>>news:qf79i19v7kqklccnr86pqr56ck5rc6loio@4ax.com:
>
>
>>>If reading the whole file into memory bothers you, why not just use the
>>>sort utility (good old DOS and XP have a sort utility as well)?
>> Trying to stick with perl.
>
>
>Why are you trying to stick with Perl?
Well honestly it just feels better. I don't have to worry so much about portability.
I'm usually reluctant to rely on OS type binaries like dir and ls and attrib, etc
Plus I can trap errors better when it's all my code. (ie; no "outisde jobs" to depend on]
Uhmm, let's see. A good programming language would give one the facility to exercise
complete dominion over the "user" memory space. (In a root/admin context]
So I ought to be able to say:
ptr = malloc( sizeof ( int ) );
And I know I have secured my memory in the above code. (Unless I get an error!)
(And broke 2 more c.l.p.m rules!)
I don't know how to do that in perl and so I was concerned
about "slurping" an 18 meg file. Sounded like it could be a dubious endeavor
depending on the box it was running on.
>
>If a Perl solution requires the entire thing in memory and sort
>utilties do not require that, then you should use them instead.
>
Well I was under the impression perl could do anything and thus memory/process
managment would have been an easy trick from withen a source file run
against the perl interpreter. Like in c.
>
>> It was what I thought might be a modest contribution.
>>>
>>>> But just so you'll know I am not a complete rookie I'll post some
>>>> recent work,
>>>
>>>Which seems to be completely irrelevant to the issue at hand.
>> It is in the very specific context, yet in other more broadly scoped contexts it is apropos.
>>>
>>>I am a little baffled.
>
>
>Me too.
>
Well, that code did take a bit of effort given I wrote it as a "3 month old" perl programmer.
I was just thinking someone could benefit from it. I do in fact know it works. :)
>
>>>> I have posted here before and been flamed to death,
>
>
>If you engage in socially unacceptable behavior you should be expecting same.
>
>I would hope that what you took away from that experience was
>to act in a socially responsible manner...
Let me say I am honored at this time to have scolded by none other than Tad. I rung the top bell!
>
>
>>>Have you read the posting guidelines for this group? They contain
>>>invaluable information on how to help yourself and help others help you.
>> Thanks, but no.
>
>
>You don't *want* to help people help you?
Yea but they way they got it rigged, it's easier to get a permit to sell dope. From the DEA.
>
>Why not?
>
>Do you really want an answer, or are you just trolling around?
Trolling no.
>
>
>> I find them so restrictive.
>
>
>Crowd control becomes necessary when a crowd forms.
Control is not a prequisite for the establishment of peace and harmony.
>
>
>> I don't like using modules that don't ship with Active State Perl
>
>
>Then you will have to rewrite a lot of code that has already been written.
>
>Expecting others to rewrite it all for you is an unrealistic expectation.
I wasn't aware I did that. As I said, all I needed was a little nudge about prepending
the epoch secocds to the front of my list. I just wanted friendly advice.
Fred
------------------------------
Date: Wed, 14 Sep 2005 22:36:14 -0500
From: Tad McClellan <tadmc@augustmail.com>
Subject: Re: sorting data - hash vs. list
Message-Id: <slrndihr1e.4ni.tadmc@magna.augustmail.com>
Fred@fred.net <Fred@fred.net> wrote:
> On Mon, 12 Sep 2005 20:41:23 -0500, Tad McClellan <tadmc@augustmail.com> wrote:
>>Fred@fred.net <Fred@fred.net> wrote:
>>> On Sun, 11 Sep 2005 22:30:59 GMT, "A. Sinan Unur" <1usa@llenroc.ude.invalid> wrote:
>>>>"Fred@fred.net" <Fred@fred.net> wrote in
>>>>news:qf79i19v7kqklccnr86pqr56ck5rc6loio@4ax.com:
> (And broke 2 more c.l.p.m rules!)
>>>>> I have posted here before and been flamed to death,
>>
>>
>>If you engage in socially unacceptable behavior you should be expecting same.
>>
>>I would hope that what you took away from that experience was
>>to act in a socially responsible manner...
>
> Let me say I am honored at this time to have scolded by none other than Tad. I rung the top bell!
It would appear then that my hope was misplaced. :-(
>>>>Have you read the posting guidelines for this group? They contain
>>>>invaluable information on how to help yourself and help others help you.
>>> Thanks, but no.
>>Do you really want an answer, or are you just trolling around?
>
> Trolling no.
We will have to agree to disagree on that point then.
> I just wanted friendly advice.
Yeah right.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
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 V10 Issue 8420
***************************************