[17491] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4911 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Nov 17 14:06:00 2000

Date: Fri, 17 Nov 2000 11:05:11 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <974487911-v9-i4911@ruby.oce.orst.edu>
Content-Type: text

Perl-Users Digest           Fri, 17 Nov 2000     Volume: 9 Number: 4911

Today's topics:
    Re: Concatenating files guthrie_linck@my-deja.com
    Re: Concatenating files <mischief@velma.motion.net>
    Re: Concatenating files guthrie_linck@my-deja.com
        converting korn shell scripts to perl <ray.rizzuto@ulticom.com>
        Getting Bold Font on plain ASCII <wasquith@usgs.gov>
    Re: How to access hash in the stored order? nobull@mail.com
    Re: Looking for idiom for getting value from @ARGV, or  <iltzu@sci.invalid>
    Re: Newbie Rename() Function <tech-removethis-@rch-usa.com>
    Re: Newbie Rename() Function <tech-removethis-@rch-usa.com>
    Re: Newbie Rename() Function <ronnie@catlover.com>
    Re: No idea about perl, Long post, short question <mischief@velma.motion.net>
    Re: No idea about perl, Long post, short question (Randal L. Schwartz)
    Re: NOBODY COULD HELP  US?????????????????????????????? <ronnie@catlover.com>
        Perl DBI <vautour@unb.ca>
    Re: Perl DBI nobull@mail.com
        Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Fri, 17 Nov 2000 17:20:36 GMT
From: guthrie_linck@my-deja.com
Subject: Re: Concatenating files
Message-Id: <8v3pcr$q9n$1@nnrp1.deja.com>

i would do it by looping over all input files, using sysread(),
using a buffer and reading in N bytes where N is your filesystem's
prefered I/O block size - often unix systems is 8192. then, of course,
do syswrite() to your output file.

# create the output file something like this
sysopen(OUT, $ofile, O_WRONLY | O_CREAT)
  or die "blech";

# open each input file like:
foreach (@ARGV) {
  sysopen(IN, $_, O_RDONLY)
    or die "blech";

  # loop using sysread and syswrite...
}


Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Fri, 17 Nov 2000 18:02:34 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: Concatenating files
Message-Id: <t1aslqpe98447e@corp.supernews.com>

Gwyn Judd <tjla@guvfybir.qlaqaf.bet> wrote:
> I was shocked! How could Mark <MPEDDLE@uk.ibm.com>
> say such a terrible thing:
>>Hi all,
>>
>>I was wondering if it was at all possible to concatenate FILES in Perl, i 
>>have not found a function to do this. 

> It is very simple. You can do it in one line if you like:

> perl -pe1 file1 file2 file3 > outputfile

Or, if you prefer not to use a one-liner because it's part of a 
larger program, try using something similar to this, which doesn't
require you to store everything in a variable:


    open(OUT, ">outputfilename") || die ("error opening output file: $!\n");
    foreach $f (@file) {
        if(  open(IN, "inputfilename")  ) {
            while(<IN>) {
                print(OUT "$_");
            }
            close(IN);
        } else {
            print("error opening file $f: $!\n");
        }
    }
    close(OUT);

or maybe just read through the docs for something similar to this: 
   open(FH, ">>$filename") || die("Error opening file $filename: $!\n");

notice the q/>>/ in the open. It stands for append mode, which can be
very useful for concatenation.

> -- 
> Gwyn Judd (print `echo 'tjla@guvfybir.qlaqaf.bet' | rot13`)
> Never argue with a man who buys ink by the barrel.

I must remember that quote.

Christopher
--
Christopher E. Stith     Motion Internet    mischief@motion.net
`Carpe noctum.'



------------------------------

Date: Fri, 17 Nov 2000 18:41:23 GMT
From: guthrie_linck@my-deja.com
Subject: Re: Concatenating files
Message-Id: <8v3u4h$ujr$1@nnrp1.deja.com>

you really should be using sysopen, sysread, and syswrite if you
want speed.... reading in files line by line is slow...



Sent via Deja.com http://www.deja.com/
Before you buy.


------------------------------

Date: Fri, 17 Nov 2000 12:05:49 -0500
From: "Ray Rizzuto" <ray.rizzuto@ulticom.com>
Subject: converting korn shell scripts to perl
Message-Id: <PzdR5.40$8o2.531@client>

Hi!

I have a large (1000+ line) korn shell which I'd like to convert to Perl.
Is there any automated way of doing this, at least for a first pass?

Ray




------------------------------

Date: Fri, 17 Nov 2000 18:34:20 GMT
From: "William H. Asquith" <wasquith@usgs.gov>
Subject: Getting Bold Font on plain ASCII
Message-Id: <3A157A2C.D512D8F7@usgs.gov>

I have a need to make some lines/words in plain ASCII files in bold face
type.  Perl is writting the text files already.  I need some guidance on
how to make a font bold.  I don't mind writting either postscript or
PDF.  I can write POD and use B<> and the markup tag, but the pod2pdf
from Pod::Pdf overformats the file for me.  Do I have any alternatives?
This seems like a very simple task, but I don't know suitable perl
modules beyond Pod::Pdf.

-wha




------------------------------

Date: 17 Nov 2000 18:03:40 +0000
From: nobull@mail.com
Subject: Re: How to access hash in the stored order?
Message-Id: <u9vgtm79xf.fsf@wcl-l.bham.ac.uk>

<vidulats@yahoo.co.uk> writes:

> Is there any way, by which I can access the elements in the same order, in 
> which they are stored in hash?

Tie::IxHash
 
> Is there any thumb rule, why hash prints the elements in some different 
> order?

Plain hashes are not ordered.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: 17 Nov 2000 15:13:56 GMT
From: Ilmari Karonen <iltzu@sci.invalid>
Subject: Re: Looking for idiom for getting value from @ARGV, or a default
Message-Id: <974472966.13165@itz.pp.sci.fi>

In article <m3y9yldpm7.fsf@dhcp11-177.support.tivoli.com>, Ren Maddox wrote:
>Ilmari Karonen <iltzu@sci.invalid> writes:
>> 
>> The _real_ reason why Perl needs a ?? operator is to remove the
>> temptation to "simplify" code or save keystrokes by using || in
>> cases like the one we've been discussing in this thread.  IMHO.
>
>I don't remember for sure (and didn't bother to check, shame on me)
>but was there discussion about the alternative of having defined be
>clever about what it returns?  In particular, I would want it to
>pass through the tested value, but with a special boolean property of
>true if the value is not true.  With this, you could simply write:
>
>  $sh->{password} = defined shift @args || $ENV{DBI_PASS};
>
>I think this would obviate the need for the ?? operator.

It's still 8 extra keystrokes.  Considering that there is special DWIM
code in Perl just to let people write

  while (my $x = <FOO>) { bar($x); }

instead of

  while (defined(my $x = <FOO>)) { bar($x); }

and also considering how often people omit the defined() in similar
situations even where said DWIM doesn't apply -- sometimes only after
making sure that "" or "0" are not valid values, but regrettably often
not -- it seems unrealistic to expect anything better in this case.

Perl design philosophy follows the principle of making common tasks
easy and common idioms short.  I would suggest that it should also
attempt to make the right solutions as easy as the wrong ones.  In
some situations the right solution is checking for truth, in others
checking for definedness.  Both should be equally short to write.

-- 
Ilmari Karonen -- http://www.sci.fi/~iltzu/
"Get real!  This is a discussion group, not a helpdesk.  You post
 something, we discuss its implications.  If the discussion happens to
 answer a question you've asked, that's incidental." -- nobull in clpm





------------------------------

Date: 17 Nov 2000 10:57:58 -0600
From: Randall <tech-removethis-@rch-usa.com>
Subject: Re: Newbie Rename() Function
Message-Id: <rjoa1toui316d16915o27q4pjmnugni3fk@4ax.com>

>I was shocked! How could Randall <tech-removethis-@rch-usa.com>
>say such a terrible thing:
>>I'm using this popular (?) script:
>
>Popular? Infamous more like. Have a search in deja.com in this group for
>"Matt Wright" before you decide if you really want to saddle yourself
>with it.

Really? Used it years ago without any problems (back when I knew what
the heck a scipt was).

I'll do so, but in the mean time I really need a simple ul script. Any
ideas then?


------------------------------

Date: 17 Nov 2000 11:39:44 -0600
From: Randall <tech-removethis-@rch-usa.com>
Subject: Re: Newbie Rename() Function
Message-Id: <tuqa1tonu0a3n3q6pcb6n8fv52g9gbm9i7@4ax.com>

>I was shocked! How could Randall <tech-removethis-@rch-usa.com>
>say such a terrible thing:
>>I'm using this popular (?) script:
>
>Popular? Infamous more like. Have a search in deja.com in this group for
>"Matt Wright" before you decide if you really want to saddle yourself
>with it.

A thousand appologies. 

Having checked and looking my HD found another script for ul'ing that
works fine. (don't know where is came from I may have written or
stolen it), ut what I'd like to add is a sendmail function so that I'm
alerted to an uploaded file.

Is there an FAQ on this (which I prefer) or can you give me directions
on adding it to the end of the script. Nothin' fancy, just a pre-made
note that someone has ul'd.


------------------------------

Date: Fri, 17 Nov 2000 18:10:33 GMT
From: Ron Grabowski <ronnie@catlover.com>
Subject: Re: Newbie Rename() Function
Message-Id: <3A15748E.E7FF9983@catlover.com>

> and I've got to use the rename() function to get the files uploaded to
> keep the same name as they had. Where is this inserted?

http://www.perl.com/pub/doc/manual/html/lib/CGI.html#CREATING_A_FILE_UPLOAD_FIELD

says:

 When the form is processed, you can retrieve the entered filename by
calling param(). 

            $filename = $query->param('uploaded_file');


------------------------------

Date: Fri, 17 Nov 2000 17:30:51 -0000
From: Chris Stith <mischief@velma.motion.net>
Subject: Re: No idea about perl, Long post, short question
Message-Id: <t1aqqb6rh45sf0@corp.supernews.com>

Simon Watkins <siwatkins@iee.org> wrote:
> "Chris Stith" <mischief@velma.motion.net> wrote in message
> news:t18q0pm9ue1s73@corp.supernews.com...

> Chris,

> You make some good points in your rather lengthy post :-), and hopefully
> you'll consider my right to reply.

I thank you for your kind words, Simon.

>> This place has been very helpful to me. In fact, it has been very helpful
>> even when I don't post questions. Reading the group before posting is more
>> than an "arcane misplaced tradition". It tends to give answers before a
>> question is asked repeatedly.

> I have found most newsgroups to be very helpful in my experience, and
> similarly I reciprocate in those that are of particular interest and relate
> to my own skills.  If you take a look back at my own posts, you will see
> that I did actually try and establish from both the messages within this

This I understand, but my post was geared towards the people new to the
group as a whole. I am certain no one else had your particular question,
since it was in reference to working with a particular specialized
application. 

>  My comments regarding arcane
> misplaced tradition relate to what I believe (as is my right) some of the
> contributors to this newsgroup hold above its purpose as a forum for
> discussion on topics regarding perl.  That is just a personal view, and has
> been garnered from my early impressions within.  I concede, that it may not
> be the same view as held by others, but such differences of opinion are
> every man and woman's right.

Yes, and every man and woman has a right to think that upside-down
posting correlates to cluelessness if one so chooses. Notice that
everyone else has been saying it is evidence of cluelessness or that
it correlates to cluelessness but you took that as a personal attack.
That put you on the defensive. Defensiveness is seen by many as a sign
of or correlating to the realization that one is wrong without the
humility to admit so. Realize that most of the people in this group
work with computers almost as much as with people, and that when someone
says "shows signs of" or "correletes to", that is what they mean and no
more. They do not necessarily mean that one is without a doubt stupid
and ignorant because they post upside-down. They just mean it is a good
bet that person hasn't become accustomed to How Things Are Done(tm). ;)


>> This group is also mostly friendly, if you follow the cultural norms.
>> There are many resources which will tell you how to get along on Usenet
>> even if you haven't taken enough time reading the group to figure it
>> out on your own.

> I do find comments such as that inflammatory and condescending.  However, I
> have been using Usenet long enough to figure things out on my own.

I didn't say Usenet. I said the group. It is considered common courtesy
throughout Usenet to read the particular group for a while to figure out
its dynamic, its taboos, and such before posting. This group happens to
stick closely to its rules because there is a great deal of information
passed through the group and much of it is very technical. So, this group
in particular is indeed different from some other groups.

>  I wouldn't dare go to China or Somalia or even France
>> or the United Kingdom and expect customs and norms for public behavior
>> to be identical to my previous experiences in the US and Canada.

> And nor I.  Similarly I wouldn't expect to go to America and receive an
> hostile response on asking a question.  I would never dream of welcoming
> someone into a community of which I was part in such a manner.

If you wouldn't expect to come to America and receive a hostile response
when asking a question, I'd suggest you be careful what parts of America
you come to and of whom you ask question upon arrival. Americans don't
always feel comfortable answering questions asked of them by strangers
on the sidewalk. I'm sorry I did hold the misconception earlier that you
were already in the US, since both Simon and Watkins are very common names
here.

>> The OP keeps referring to Usenet as "part of the Internet" and a
>> "technological resource". He doesn't seem to understand that Usenet
>> existed apart from the Internet in days past or that Usenet is a
>> cultureof its own. These are serious issues for anyone who expects to
>> be taken completely seriously.

> This is another example of assumptions being made.  I am well aware of
> Usenet's origins, and such patronizing comments oft cause inflammatory
> responses.  I find it surprising that so many assumptions have been made by
> so many intelligent people with so little information :-)

This was not an assumption. You post referred to Usenet, and in the same
sentence to "the Internet at large". What we have here is an inference,
not an assumption. I did not read your post as you intended, but your post
was not clear enough to preclude the inference.

>> The posts explaining the OP's position were not apologies or even
>> concessions.

You yourself made reference earlier to propagation times. I'm sorry that
I made this statement between you having posted and my ability to read
you apologetic post.

> They were defensive and excusatory. Naturally defensive
>> and excusatory responses are not welcomed as openly. They are evidence
>> pointing more towards contempt of the norms than towards an initial
>> misunderstanding, and more towards conceit than humility.

> I see no reason that I should adopt humility in seeking assistance.

I see no reason to have to adopt anything. Humility is a virtue of its
own accord. When you ask for assistance, you are basically admitting that
someone else is more capable in the area in which you need assistance.
You asked for assistance yet you aggrandized yourself and defamed others.
If you feel the need to ask asssistance, you should realize that the
people you are asking are indeed likely to be more skilled than yourself
in the particular area. Otherwise, you may as well ask for Perl help
in alt.binaries.erotica.spanking or some other group far from here. You
specifically called other people unprofessional and proclaimed yourself
professional, you questioned the technical abilities of some of the most
skilled Perl programmers in the group, and you have made innuendos of
lack of character, intelligence, and social skills in others - or at least
in text your posts read this way. I'm sorry if i misunderstood your posts
in this negative direction, but i have a feeling much of this thread is
based on the fact that most people in the group read them in a similar
fashion.

I'm also sorry that I may not have been clear in my posts. I see that
some of the general statements I've made about Usenet have been taken
by you to be attacks against your personal knowledge. They were for the
benefit of you or anyone else who may not have known certain things or
who may benefit during this thread from someone reiterating what you may
already know.

> Contempt and
>> conceit are disrespectful, especially in the Usenet culture and the
>> culture of technological specialists (including programmers) that
>> make up the core of the Usenet culture.

> I find these remarks equally disrespectful.  You know nothing of my
> technical skills in other areas.  Nothing.  I consider myself as much part
> of the core of Usenet culture as yourself.

I thank you for comparing yourself to me to make a point of being part of
the core Usenet culure. This I take as a compliment. It is true I have no
idea of your technical abilities outside of Perl. It is also true that I
have read your posts in this group and that the earliest posts fom you did
not seem, to me, to be posts from someone who has used the more technical
newsgroups available on Usenet newsfeeds for more than a nominal length
of time. These posts, and their content, are all the knowledge I have of
you. I may very well be impressed with your mental prowess if I had seen
your work in other areas. I have not figured you to be of less than average
intelligence here as it is. I have, however, taken offense to your certain
of your posts. I can see that you are trying to rectify that situation now,
and that I find that to be a sign of character beyond what I would have
expected from your previous posts.

>>Usenet exists for the clear
>> exchange of ideas across geographical boundaries. The more closely
>> posts adhere to Usenet norms, the easier it is to keep the content
>> clear.

> Agreed.  I have no argument with this, and am myself surprised at so much of
> this:

>> Anything that wastes time, bandwidth, or disk space in a
>> group this voluminous is considered very rude. Posts with inadequate
>> background waste all three, especially time. I'd be concerned this
>> post was a waste if I didn't consider it informative of why people
>> are upset.

> I can assure you from the personal responses that I have received, that
> those upset form a minority.  I myself am upset at how much has been assumed
> about me with no just reason, comments made indicating that I am "Clueless",
> someone who doesn't understand Usenet Culture, calling my technological
> skills in other areas into question et al.

Again, see above where I metnioned that I've read nowhere that you are
absolutley ignorant and stupid. There are, however, indications that make
people more likely to draw that conclusion. You did, in your earlier posts,
show certain signs that people in this group consider to mean you are
more likely to be ignorant of the topic and of the group than if you hadn't
shown the said signs.

[snipped very old post content by Randal]

>>For those of you with an itchy plonk finger, I hope that's enough.

> Would you consider that a personal attack?

I would not consider that a personal attack. Notice, for one, that
Randal said "itchy lonk finger". In case you did not realize (and this
is truly only in case you did not realize it, I make no assumption),
the phrase "itchy <blank> finger" is an idiom for someone who is more
ready to do something than the average person. Randal ( according to
the way I read it, as I'd hate to put words in his mouth ) was pointing
out that there were reasons some people would want to disregard your
posts. I don't know Randal personally, but i've read his work and I've
read many, many posts by Randal here. After all of this, I'd say that
Randal is not one to make a personal attack, but that he's very likely
to point out the errors he sees in hopes he can help someone correct
those errors. I don't consider a little criticism of a post to be a
personal attack against the poster. I doubt Randal does. I wouldn't
expect Randal to respond to this, either, as he's a very busy man and
has likely killfiled this whole thread by now.

>> His name, by the way, means a lot more
>> to the Perl groups than everything you could post defaming him. If you
>> really want help from Randal so badly, buy one of his books on Perl.
>> After reading one of his books, read some Nathan Torkington or some
>> Larry Wall. The Perl Journal, Learning Perl, Programming Perl, etc. are
>> some of the most helpful resources for Perl programmers. I'd dare say
>> that writing the books and magazine articles (Randal does magazine
>> columns, too, BTW) that the whole world can use to learn Perl is helpful.

> I thank you for your list of references, I will use them to study the
> language.  I have no desire to continue a word war with Randal, and have
> said as much.

Good for you and for the group.

>> This is not a clique. This is a `group', yes. That should be inferred by
>> the classification `newsgroup'. Every group expects someone to follow the
>> rules to become a part of the group. This newsgroup is not exclusionary
>> by any means.

> No, that has become apparent in private email.

Good for you and the group. :)  I'm glad that some of the people who
read the group have agreed to help you, but I wish that they would have
done so in the group as well, since it may be useful to others in the
future. I guess maybe they are afraid it would get lost in all of this
mess. :-/

> I've seen all levels of questions answered here. I've seen
>> questions asked by people of many nationalities answered. I've even seen
>> polite responses referring posters to other groups when questions are
>> asked in the wrong group.

> I think this is where the problem initially lay - I took Randal's response
> to me as rude.  I believe we both could have worded are responses better, in
> which case there would have been none of this.

Everyone misunderstands someone sometime, especially in print. I sense
in this statement something you said you felt no need to show. The statement
that you believe that not only Randal but also yourself could have done
something better is humility in practice.

> What all of these questions had in common was
>> that the posters seemed to be friendly in their wording, aware of the
>> stylistic rules, and willing to admit they were wrong if they were wrong.

[snipped some issues already covered]

>> I consider much of your post to contain little kindness or regard.

> Similarly so.  In places I considered you to be propagating falsehoods,
> casting aspersions upon my character and guilty of the same sins of which
> you accuse me - those are my opinions, to which I am entitled.  Nonetheless,
> I have tried to maintain balance in my reply, as I felt such a lengthy post
> merited response.  One would hope that we could end this discussion, as it
> has gone on long enough.  Perhaps we can agree on that.

I can agree to that.

I will also point out that I made no attacks against your character.
I merely responded to your posts on the merits and faults I found in
your posts. I realize that a post does not always read the way it was
intended, and that a person's character is very difficult to judge
from one or two posts. That is why, if you reread my posts carefully
enough, it is likely you will find I made reference to the posts
specifically. I'm very sorry if I seemed to be judging your character,
Simon. I did make an impression in my mind of Randal's character, in
fact before this thread. From the volume of posts of his i've read and
the contexts in which I've read them, I feel quite comfortable holding
a positive impression of Randal in my mind. I'm just now starting to
form an impression of you, Simon, and it is fairly neutral. It has been
helped quite a bit by the post to which I'm responding at the moment,
so that it is barely on the positive side instead of barely on the
negative. I'm very slow to form an impression of someone even if I
know them personally face-to-face, I always am prepared to let that
impression change, and I never make a final judgement about someone's
character, morals, or life because that is against all my personal
beliefs. If I was hasty to make a decision, I would have killfiled
this thread long ago. My main decision about a person has always been
whether or not it it worth my time to deal with that person, and I
think it is apparent I gave you, Simon, much of my time. This does
not mean necessarily that I like you nor necessarily that I dislike
you, but that I had enough respect for your opinion to keep reading
your posts and responding to them.

Perhaps things would have been less dramatic if I hadn't responded
in the first place, but I felt the need at the time. I'm ready to call
this thing done. I think there has been more than enough text on this
situation to clear the air and to hopefully keep the same situation
from happening again when people find this huge mess on Deja later.

Chris

--
Christopher E. Stith     Motion Internet     mischief@motion.net
`The Tao is not like the mountain rising harshly above the plain, 
against the elements. The Tao is more like the water that seeks the
low places and takes the shape of them, filling them up. In doing so,
the water also reshapes the mountain. This is the nature of the Tao.'



------------------------------

Date: 17 Nov 2000 10:22:23 -0800
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: No idea about perl, Long post, short question
Message-Id: <m1u296h31c.fsf@halfdome.holdit.com>

>>>>> "Chris" == Chris Stith <mischief@velma.motion.net> writes:

Chris> I would not consider that a personal attack. Notice, for one, that
Chris> Randal said "itchy lonk finger".

"itchy plonk finger", actually, which I don't have.  I was pointing
this out for my fellow group residents who do. :)

I've only "plonked" someone about two or three times that I can
recall.  In 20 years of Usenet reading.  However, my newsreader can be
told to "deprioritize" certain posters, and even then I use that
rarely.  I mostly deprioritize subjects or threads, not users.  I
don't treat behavior synonymous with a person, even in real life.
(Thus I tend to be confused when people take my criticism of their
behavior personally, since I never intend it that way.)

Chris>  In case you did not realize (and this
Chris> is truly only in case you did not realize it, I make no assumption),
Chris> the phrase "itchy <blank> finger" is an idiom for someone who is more
Chris> ready to do something than the average person. Randal ( according to
Chris> the way I read it, as I'd hate to put words in his mouth ) was pointing
Chris> out that there were reasons some people would want to disregard your
Chris> posts.

Yes, that's fair.  It's data for the others who *do* have a desire to
mark a person unworthy of further interaction.  Again, not me, but
people I know.

Chris>  I don't know Randal personally, but i've read his work and I've
Chris> read many, many posts by Randal here. After all of this, I'd say that
Chris> Randal is not one to make a personal attack, but that he's very likely
Chris> to point out the errors he sees in hopes he can help someone correct
Chris> those errors. I don't consider a little criticism of a post to be a
Chris> personal attack against the poster. I doubt Randal does. I wouldn't
Chris> expect Randal to respond to this, either, as he's a very busy man and
Chris> has likely killfiled this whole thread by now.

Heh.  You forget my vanity.  My name's getting mention here. :-)

From a practical perspective, I hate being misquoted... that results
in felony convictions (from personal experience), so I read what
people are attributing to me to see if anything needs correcting.  For
that reason, i can't kill this thread since there will continue to be
references to what I've said or done.

print "Just another Perl hacker,"

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


------------------------------

Date: Fri, 17 Nov 2000 18:24:30 GMT
From: Ron Grabowski <ronnie@catlover.com>
Subject: Re: NOBODY COULD HELP  US??????????????????????????????????????????????????
Message-Id: <3A1577D4.91647E48@catlover.com>

>     I have a big problem and no idea how to solve it. I would be very happy

The more question marks you post in your subject the more people will
help you. Next time, post at least 20 more question marks to get a
faster response.

> 162036941&bfmtype=movies If you try with IE or Netscape you could raalize
> that (and maybe this is one of the causes of the problem!) before you obtain
> the answer page there will be TWO rediretcs. Anyway using the browser all
> work correctly.

Perhaps the thread titled 'set cookie, then redirect' might be of
interest to you:


http://mailarchive.activestate.com/browse/perl-win32-web/?begin=20000920121920AQZZ

- Ron


------------------------------

Date: Fri, 17 Nov 2000 13:19:03 -0400
From: Gil Vautour <vautour@unb.ca>
Subject: Perl DBI
Message-Id: <3A156887.E2E7712E@unb.ca>

Hi all,

I have been doing some research on Perl and the DBI module, but I still
have a few questions...  The following is my situation and I'm wondering

if it is even possible and am I on the right track.  I have Perl running

on Unix with an Apache webserver, and I also have a Win98 PC on the
network that is running 24/7.  Would I be able to use Perl with the DBI
module to access a MS Access database on the windows PC?  If the ODBC
DSN is setup on the PC would I be able to connect to the database using
Perl?  If so, how do I specify the where the PC and database are using
something like :
 my $dbh = DBI->connect( "dbi:???", "username", "password" )

Thanks



------------------------------

Date: 17 Nov 2000 17:45:42 +0000
From: nobull@mail.com
Subject: Re: Perl DBI
Message-Id: <u9y9yi7ard.fsf@wcl-l.bham.ac.uk>

Gil Vautour <vautour@unb.ca> writes:


> if it is even possible and am I on the right track.  I have Perl running
> on Unix with an Apache webserver, and I also have a Win98 PC on the
> network that is running 24/7.  Would I be able to use Perl with the DBI
> module to access a MS Access database on the windows PC?  If the ODBC
> DSN is setup on the PC would I be able to connect to the database using
> Perl?

Not directly, ODBC is not a network protocol. 

There is something on CPAN called DBI::pNET that supposedly adds
network support to non-network database interfaces by doing remote
procedure calls in Perl.

-- 
     \\   ( )
  .  _\\__[oo
 .__/  \\ /\@
 .  l___\\
  # ll  l\\
 ###LL  LL\\


------------------------------

Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 16 Sep 99)
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: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.

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 V9 Issue 4911
**************************************


home help back first fref pref prev next nref lref last post