[27937] in Perl-Users-Digest
Perl-Users Digest, Issue: 9301 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Jun 15 14:05:58 2006
Date: Thu, 15 Jun 2006 11:05:10 -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, 15 Jun 2006 Volume: 10 Number: 9301
Today's topics:
Re: Auto flush doesn't work as expected lawrence@hummer.not-here.net
automate command line script using perl <shahrahulb@gmail.com>
Re: automate command line script using perl <jurgenex@hotmail.com>
Re: automate command line script using perl <shahrahulb@gmail.com>
Re: Binding array to pattern (Seymour J.)
Re: Binding array to pattern <uri@stemsystems.com>
Re: Broken Pipe in Network Programming <tzz@lifelogs.com>
Re: Broken Pipe in Network Programming xhoster@gmail.com
Re: Broken Pipe in Network Programming xhoster@gmail.com
Re: Broken Pipe in Network Programming <mumia.w.18.spam+nospam.usenet@earthlink.net>
Re: can I trust on key %hash natural order? <benmorrow@tiscali.co.uk>
Re: can I trust on key %hash natural order? <john@castleamber.com>
Can not "signal_conect" using GTK2::GladeXML in win32. <luxiangyu@msn.com>
Can you clear a form in a perl script terry@av1611.org
Re: Can you clear a form in a perl script <hoosier45678@hotmail.com>
Re: Can you clear a form in a perl script <ignoramus19197@NOSPAM.19197.invalid>
Re: Can you clear a form in a perl script <glennj@ncf.ca>
Re: Can you clear a form in a perl script <john@castleamber.com>
Re: Can you clear a form in a perl script <jurgenex@hotmail.com>
Re: Doc to PDF using Perl <David.Squire@no.spam.from.here.au>
Re: Doc to PDF using Perl <baxter.brad@gmail.com>
Re: question installing DBD::mysql <benmorrow@tiscali.co.uk>
Re: question installing DBD::mysql <"v.niekerk at hccnet.nl">
Re: question installing DBD::mysql <"v.niekerk at hccnet.nl">
Re: question installing DBD::mysql <sherm@Sherm-Pendleys-Computer.local>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 15 Jun 2006 07:51:42 -0700
From: lawrence@hummer.not-here.net
Subject: Re: Auto flush doesn't work as expected
Message-Id: <87irn2bhfl.fsf@hummer.i-did-not-set--mail-host-address--so-shoot-me>
Worked for me ... how are you testing? (Hint: If your answer doesn't
include 'telnet to port 80' you're testing it wrong.)
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Lawrence Statton - lawrenabae@abaluon.abaom s/aba/c/g
Computer software consists of only two components: ones and
zeros, in roughly equal proportions. All that is required is to
sort them into the correct order.
------------------------------
Date: 15 Jun 2006 10:32:11 -0700
From: "perlperl" <shahrahulb@gmail.com>
Subject: automate command line script using perl
Message-Id: <1150392730.951527.165660@u72g2000cwu.googlegroups.com>
i have a bash script,
when i run this script, its a interactive script and ask users couple
of questions and move forward and completes the script.
is there a way i can automate that using perl, if i know the sequence
of questions and the answer i need to provide.
------------------------------
Date: Thu, 15 Jun 2006 17:33:52 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: automate command line script using perl
Message-Id: <4Sgkg.6186$h46.1937@trnddc07>
perlperl wrote:
> i have a bash script,
> when i run this script, its a interactive script and ask users couple
> of questions and move forward and completes the script.
>
> is there a way i can automate that using perl, if i know the sequence
> of questions and the answer i need to provide.
You may want to check out the Expect module.
jue
------------------------------
Date: 15 Jun 2006 10:45:40 -0700
From: "perlperl" <shahrahulb@gmail.com>
Subject: Re: automate command line script using perl
Message-Id: <1150393540.641328.201560@y41g2000cwy.googlegroups.com>
just to make sure what i am looking,
when i run the bash script,
it ask me
"would you like to install thi Y/N?"
would you like to install this y/n?
and so on....
i want to automate all this stuff (assuming i know all the answers in
advance)
also i just saw bash script, its a test.csh script (c-shell script)
Do you mein "use Expect" of Perl?
------------------------------
Date: Thu, 15 Jun 2006 09:32:24 -0300
From: "Shmuel (Seymour J.) Metz" <spamtrap@library.lspace.org.invalid>
Subject: Re: Binding array to pattern
Message-Id: <44916168$1$fuzhry+tra$mr2ice@news.patriot.net>
In <x7veraf2kp.fsf@mail.sysarch.com>, on 06/09/2006
at 05:20 PM, Uri Guttman <uri@stemsystems.com> said:
>disregarding the loop issues, that is very hard to read code. notice
>the massive redundant use of $host_info{$host}{Email} in there?
>factor that out into a scalar before the loop. and then it can become
>almost readable (with some needed whitespace too)
Thanks.
> my $email_info = $host_info{$host}{Email} ;
I assume that $email_info will b e a reference, so that stores into it
will go into $host_info?
> push @Contacts, @{$emails};
> push @abuseContacts, @{$emails};
No; that would change the logic. What would be needed is:
push @abuseContacts, @{$emails};
my $scalarContacts = "@{$emails}"
if (/abuse/ or $scalarContacts =~ /abuse/);
>and why do you push the same stuff into 2 different arrays?
I don't; the 2nd push is conditional.
>if you used List::Utils::first you can scan for the first abuse
>email in the array and it could be faster as you don't make up the
>string first.
It's more complicated than that; there are two arrays and if the
second has any entries then I need to use it in place of the first. So
I'd need to use something like grep to extract the abuse entries if I
didn't select them out into a separate array.
if (@abuseContacts) {
print $fhLookup "Abuse contacts: ", join(',
',@abuseContacts),"\n";
} else {
print $fhLookup "contacts: ", join(', ',@Contacts),"\n";
}
Just for laughs I checked Hash::Util to see if there was an equivalent
to List::Utils::first, but no joy.
--
Shmuel (Seymour J.) Metz, SysProg and JOAT <http://patriot.net/~shmuel>
Unsolicited bulk E-mail subject to legal action. I reserve the
right to publicly post or ridicule any abusive E-mail. Reply to
domain Patriot dot net user shmuel+news to contact me. Do not
reply to spamtrap@library.lspace.org
------------------------------
Date: Thu, 15 Jun 2006 11:44:44 -0400
From: Uri Guttman <uri@stemsystems.com>
Subject: Re: Binding array to pattern
Message-Id: <x77j3izamr.fsf@mail.sysarch.com>
>>>>> "SM" == Shmuel (Seymour J ) Metz <spamtrap@library.lspace.org.invalid> writes:
>> my $email_info = $host_info{$host}{Email} ;
SM> I assume that $email_info will b e a reference, so that stores into it
SM> will go into $host_info?
it has to be a reference as you created a ref there earlier when you
built the structure. all scalar values in a structure that hold lower
level structures are refs.
>> push @Contacts, @{$emails};
>> push @abuseContacts, @{$emails};
SM> No; that would change the logic. What would be needed is:
SM> push @abuseContacts, @{$emails};
SM> my $scalarContacts = "@{$emails}"
SM> if (/abuse/ or $scalarContacts =~ /abuse/);
that is wrong. you didn't make $scalarContacts before you tested it.
>> and why do you push the same stuff into 2 different arrays?
SM> I don't; the 2nd push is conditional.
but based on wrong logic. i still don't know your goals here.
>> if you used List::Utils::first you can scan for the first abuse
>> email in the array and it could be faster as you don't make up the
>> string first.
SM> It's more complicated than that; there are two arrays and if the
SM> second has any entries then I need to use it in place of the first. So
SM> I'd need to use something like grep to extract the abuse entries if I
SM> didn't select them out into a separate array.
that is very unclear to me. you need to learn how to express your
requirements better. that makes it much easier to code to them. i can't
read your mind so you have to explain it in very clear english.
SM> if (@abuseContacts) {
SM> print $fhLookup "Abuse contacts: ", join(',
SM> ',@abuseContacts),"\n";
SM> } else {
SM> print $fhLookup "contacts: ", join(', ',@Contacts),"\n";
SM> }
SM> Just for laughs I checked Hash::Util to see if there was an equivalent
SM> to List::Utils::first, but no joy.
that makes no sense as there is no order in hashes so first can't
exist. you want any() from quantum::superpositions or one of the perl6
modules.
again, please write up VERY clear requirements as it will help you and
us.
uri
--
Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
------------------------------
Date: Thu, 15 Jun 2006 11:41:42 -0400
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Broken Pipe in Network Programming
Message-Id: <g69irn2bf49.fsf@CN1374059D0130.kendall.corp.akamai.com>
On 15 Jun 2006, janicehwang1325@yahoo.com wrote:
> here my server code:
>
> use threads;
>
> #!/usr/bin/perl
Are you sure this is your code? The first two lines should be
switched unless you just don't intend to run directly from the command
line. Also, the whole thing doesn't compile. Try posting a simple
example that illustrates the error, not snippets from your source
code. Then it's much easier to help you.
The threads library, in my experience, can cause strange errors. Try
a test without it and make sure things work there. The
IO::Socket::SSL module, for example, may not be thread-safe (I don't
know this, I'm giving an example of why threads should be disabled to
make sure things work without them).
Also, try using IO::Socket without SSL. Does that work?
Generally with debugging you want to start with a simple situation and
work your way up to what breaks, not start with a complex situation
and try to find the bug(s).
Ted
------------------------------
Date: 15 Jun 2006 15:44:24 GMT
From: xhoster@gmail.com
Subject: Re: Broken Pipe in Network Programming
Message-Id: <20060615114447.019$gM@newsreader.com>
"janicehwang1325@yahoo.com" <janicehwang1325@yahoo.com> wrote:
> Hi,
>
> I have server running on localhost and a client is connected to it from
> the same station, which is the localhost. However, when i try to
> connect another client to the server, it gives me Broken pipe error in
> the second client and the server side prompt that there is a
> segmentation fault (core dumped). What is the cause of this problem and
> how can i solve it?
You have a bug in line 23 of the server, and another in line 17 of the
client.
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: 15 Jun 2006 15:52:19 GMT
From: xhoster@gmail.com
Subject: Re: Broken Pipe in Network Programming
Message-Id: <20060615115241.616$5T@newsreader.com>
"janicehwang1325@yahoo.com" <janicehwang1325@yahoo.com> wrote:
> here my server code:
>
> use threads;
>
> #!/usr/bin/perl
>
> use POSIX ":sys_wait_h";
> use IO::Socket::SSL;
> use IO::Handle;
> use Time::Local;
> use DBI;
No use strict?
Why use threads rather than forking? (Especially since you are mixing fork
with threads?)
Xho
--
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service $9.95/Month 30GB
------------------------------
Date: Thu, 15 Jun 2006 17:27:32 GMT
From: "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>
Subject: Re: Broken Pipe in Network Programming
Message-Id: <8Mgkg.6313$lp.2914@newsread3.news.pas.earthlink.net>
Ben Morrow wrote:
> Quoth "Mumia W." <mumia.w.18.spam+nospam.usenet@earthlink.net>:
>> You should close these file handles before you open them with different
>> targets.
>
> Unless you're particularly concerned to catch errors from close, you
> don't need to. Perl will close them for you (and drop any error on the
> floor).
>
> Ben
>
Oh, thanks. I learned something today.
------------------------------
Date: Thu, 15 Jun 2006 14:41:19 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: can I trust on key %hash natural order?
Message-Id: <vk48m3-jeu.ln1@osiris.mauzo.dyndns.org>
Quoth "filippo" <filippo2991@virgilio.it>:
> John Bokma ha scritto:
>
> > Better: do the comparision with SQL. It can compare dates.
>
> this would be the best. Is is possible to embed this
>
> get TIMESTAMP from database (current local date)
> get DATE from a database table
> compare DATE to TIMESTAMP
> return the result of comparison
>
> as an SQL query?
This Is Not A Perl Question.
In general, yes, but how depends on which database you are using. Read
its SQL docs.
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.'
benmorrow@tiscali.co.uk
------------------------------
Date: 15 Jun 2006 16:18:48 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: can I trust on key %hash natural order?
Message-Id: <Xns97E373155D20Ccastleamber@130.133.1.4>
"filippo" <filippo2991@virgilio.it> wrote:
> John Bokma ha scritto:
>
>> Better: do the comparision with SQL. It can compare dates.
>
> this would be the best. Is is possible to embed this
>
> get TIMESTAMP from database (current local date)
Yup, for example with MySQL that is NOW().
> get DATE from a database table
> compare DATE to TIMESTAMP
> return the result of comparison
>
> as an SQL query?
Yup, but this is an SQL question. If you are working with a database it's
very good to read the manual, especially since this is extremely basic
stuff.
A common mistake I see very often is to extract a lot of data from a
database, and have the program do a lot of manipulation that could be done
by the database itself, and probably much more efficient.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: 15 Jun 2006 09:50:52 -0700
From: "phus" <luxiangyu@msn.com>
Subject: Can not "signal_conect" using GTK2::GladeXML in win32.
Message-Id: <1150390252.539173.173320@g10g2000cwb.googlegroups.com>
Hi all:
I write a perl script using gtk2-perl, i designed the GUI with
Glade, so i add "using GTK2::GladeXML" in my script code.
everything goes well in Linux(perl-5.8.6), but i want the script can
also run in win32. so i install activeperl-5.8.7 in win2000, install
gtk-win32-2.8.18-rc1.exe, and install GTK2, GTK2::GladeXML modules
with ppm(a cpan clone in win32).
but when run the script, perl give me the error "Can't locate object
method "signal_connect" via package "Gtk2::Window" at
C:/Perl/site/lib/Gtk2/GladeXML.pm line 40."
i have no idea to deal with it.
Thanks.
------------------------------
Date: 15 Jun 2006 08:25:06 -0700
From: terry@av1611.org
Subject: Can you clear a form in a perl script
Message-Id: <1150385106.013147.74410@f6g2000cwb.googlegroups.com>
I need a simple way to clear a form after the form is processed in a
perl script.
It's a "tell a friend" type cgi script. I'm getting users using the
"back button" and resubmitting the form and spaming me.
I've got many pages using this script and I don't want to use a
javascript (which would require changing all the pages).
please email me at twatkins@charter.net with any suggestions.
Thanks
Terry
------------------------------
Date: Thu, 15 Jun 2006 10:54:10 -0500
From: James <hoosier45678@hotmail.com>
Subject: Re: Can you clear a form in a perl script
Message-Id: <pan.2006.06.15.15.54.04.729734@hotmail.com>
On Thu, 15 Jun 2006 08:25:06 -0700, terry wrote:
> I need a simple way to clear a form after the form is processed in a perl
> script.
>
> It's a "tell a friend" type cgi script. I'm getting users using the "back
> button" and resubmitting the form and spaming me.
>
> I've got many pages using this script and I don't want to use a javascript
> (which would require changing all the pages).
Never depend on js or cookies for any sort of security.
What makes you think that they're using a browser? Forms are trivial to
submit using curl, perl, or many other methods. You've created a simple
to use email gateway with presumably no authentication of the user. Look
into adding a captcha or some other means to sift out the bots.
> please email me at twatkins@charter.net with any suggestions.
F no
------------------------------
Date: Thu, 15 Jun 2006 16:01:50 GMT
From: Ignoramus19197 <ignoramus19197@NOSPAM.19197.invalid>
Subject: Re: Can you clear a form in a perl script
Message-Id: <Ovfkg.39957$wS2.1293@fe56.usenetserver.com>
On 15 Jun 2006 08:25:06 -0700, terry@av1611.org <terry@av1611.org> wrote:
> I need a simple way to clear a form after the form is processed in a
> perl script.
>
> It's a "tell a friend" type cgi script. I'm getting users using the
> "back button" and resubmitting the form and spaming me.
>
> I've got many pages using this script and I don't want to use a
> javascript (which would require changing all the pages).
>
> please email me at twatkins@charter.net with any suggestions.
This is actually not at all a perl question, it is a HTML/javascript
question. I do not believe that what you want, can be done without
javascript.
And, the users do not need to click the back button to resend the
form, they can simply click the RELOAD button on the form result.
i
------------------------------
Date: 15 Jun 2006 16:13:20 GMT
From: Glenn Jackman <glennj@ncf.ca>
Subject: Re: Can you clear a form in a perl script
Message-Id: <slrne931p0.i06.glennj@smeagol.ncf.ca>
At 2006-06-15 11:25AM, terry@av1611.org <terry@av1611.org> wrote:
> I need a simple way to clear a form after the form is processed in a
> perl script.
If you're using CGI.pm to generate the html, read about "nosticky" in
the docs.
--
Glenn Jackman
Ulterior Designer
------------------------------
Date: 15 Jun 2006 16:21:09 GMT
From: John Bokma <john@castleamber.com>
Subject: Re: Can you clear a form in a perl script
Message-Id: <Xns97E3737B6F9Dcastleamber@130.133.1.4>
terry@av1611.org wrote:
> I need a simple way to clear a form after the form is processed in a
> perl script.
>
> It's a "tell a friend" type cgi script. I'm getting users using the
> "back button" and resubmitting the form and spaming me.
>
> I've got many pages using this script and I don't want to use a
> javascript (which would require changing all the pages).
Create a file with the last n IP addresses that has been using the
service, and don't allow it to be used again in n minutes.
> please email me at twatkins@charter.net with any suggestions.
Post here, read here.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/
------------------------------
Date: Thu, 15 Jun 2006 16:35:05 GMT
From: "Jürgen Exner" <jurgenex@hotmail.com>
Subject: Re: Can you clear a form in a perl script
Message-Id: <Z_fkg.17304$Bj6.3209@trnddc08>
terry@av1611.org wrote:
> I need a simple way to clear a form after the form is processed in a
> perl script.
Would the answer to your request be any different if your were using C or
COBOL instead of Perl? Ergo you don't have a Perl question.
> It's a "tell a friend" type cgi script. I'm getting users using the
> "back button" and resubmitting the form and spaming me.
Although possible it's much more likely that you simply created an open barn
door for spammers and they are exploiting your poor security using automated
scripts instead of users hitting a back button.
You may want to read up on basic web service security.
> I've got many pages using this script and I don't want to use a
> javascript (which would require changing all the pages).
And which wouldn't help against automated submission anyway
> please email me at twatkins@charter.net with any suggestions.
How much are you paying?
jue
------------------------------
Date: Thu, 15 Jun 2006 14:18:06 +0100
From: David Squire <David.Squire@no.spam.from.here.au>
Subject: Re: Doc to PDF using Perl
Message-Id: <e6rmme$c6o$1@news.ox.ac.uk>
Alan J. Flavell wrote:
>
> On Thu, 15 Jun 2006, Ben Morrow wrote:
>
>> I read the OP as having a collection of Word files on a Unix machine
>> and no way to proceed from there... not a situation I envy.
>
> In earlier times, I would pipe the .doc attachment to "strings"[1]
>
> But with current Word versions, it doesn't seem to work at all.
I use antiword by Adri van Os, which seems to cope just fine with all
.doc files I have thrown at it.
DS
------------------------------
Date: 15 Jun 2006 06:20:18 -0700
From: "Brad Baxter" <baxter.brad@gmail.com>
Subject: Re: Doc to PDF using Perl
Message-Id: <1150377618.380662.199160@h76g2000cwa.googlegroups.com>
Alan J. Flavell wrote:
> On Thu, 15 Jun 2006, Ben Morrow wrote:
>
> > (this is one of the main reasons I hate M$ :) ).
>
> ...and all those who insist on putting their substantive content into
> MS Word email attachments, without offering any clue to its content in
> the Subject header (which typically reads "Important", "Please read",
> or similar vacuous sentiments), nor in their covering plaintext note
> (which typically contains instructions on how to read MS Word
> documents, implying that the misbegotten sender is already aware that
> there is a problem, but hasn't got the sense to solve that problem)...
>
> </rant>
>
<emphatic>Hear hear!</emphatic> And it sends me through the
roof to discover that the document contains a single paragraph.
The day I saw Google mail's "View as HTML" I did the Herman
Munster hop (high fives not being my thing).
--
Brad
------------------------------
Date: Thu, 15 Jun 2006 14:40:10 +0100
From: Ben Morrow <benmorrow@tiscali.co.uk>
Subject: Re: question installing DBD::mysql
Message-Id: <qi48m3-jeu.ln1@osiris.mauzo.dyndns.org>
Quoth Huub <"v.niekerk at hccnet.nl">:
> >
> > What I like to do in situations like this is issue a "look DBD::mysql" in
> > the CPAN shell. That will go through the download and unzip steps, and open
> > up a subshell in the build directory. From that point you can run the other
> > steps manually.
>
> OK, thank you. I now got these results:
>
> <snip>
> Checking if your kit is complete...
> Looks good
> Using DBI 1.50 (for perl 5.008007 on i686-linux) installed in
> /usr/local/lib/perl5/site_perl/5.8.7/i686-linux/auto/DBI/
> Writing Makefile for DBD::mysql
> [root@Paarl DBD-mysql-3.0006]#
<snip>
>
> install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC
>
> Could you tell me what I'm doing wrong?
Err... not installing it? You need to run
perl Makefile.PL <whatever>
make
make test
make install
You may have been confused by the 'use DBI... installed in' message:
this is telling you that DB*I* is alreadly installed, and where, not
that DB*D*::mysql has been installed.
Ben
--
#!/bin/sh
quine="echo 'eval \$quine' >> \$0; echo quined"
eval $quine
# [benmorrow@tiscali.co.uk]
------------------------------
Date: Thu, 15 Jun 2006 18:33:17 +0200
From: Huub <"v.niekerk at hccnet.nl">
Subject: Re: question installing DBD::mysql
Message-Id: <44918bcd$0$30232$e4fe514c@dreader17.news.xs4all.nl>
>
> Err... not installing it? You need to run
>
> perl Makefile.PL <whatever>
> make
> make test
> make install
>
> You may have been confused by the 'use DBI... installed in' message:
> this is telling you that DB*I* is alreadly installed, and where, not
> that DB*D*::mysql has been installed.
>
> Ben
>
What about an earlier advise that I should install DBD::mysql through
cpan, i.e. "install DBD::mysql" which would be easier? Because now
you're telling me to download DBD::mysql, unzip and install it, right?
------------------------------
Date: Thu, 15 Jun 2006 18:36:18 +0200
From: Huub <"v.niekerk at hccnet.nl">
Subject: Re: question installing DBD::mysql
Message-Id: <44918c82$0$19464$e4fe514c@dreader17.news.xs4all.nl>
>
> Err... not installing it? You need to run
>
> perl Makefile.PL <whatever>
> make
> make test
> make install
>
> You may have been confused by the 'use DBI... installed in' message:
> this is telling you that DB*I* is alreadly installed, and where, not
> that DB*D*::mysql has been installed.
>
> Ben
>
What about an earlier advise that I should install DBD::mysql through
cpan, i.e. "install DBD::mysql" which would be easier? Because now
you're telling me to download DBD::mysql, unzip and install it, right?
Ok, seems I still need to do make.
------------------------------
Date: Thu, 15 Jun 2006 13:08:46 -0400
From: Sherm Pendley <sherm@Sherm-Pendleys-Computer.local>
Subject: Re: question installing DBD::mysql
Message-Id: <m2ac8e8hy9.fsf@Sherm-Pendleys-Computer.local>
Huub <"v.niekerk at hccnet.nl"> writes:
>> What I like to do in situations like this is issue a "look DBD::mysql" in
>> the CPAN shell. That will go through the download and unzip steps, and open
>> up a subshell in the build directory. From that point you can run the other
>> steps manually.
>>
>
> OK, thank you. I now got these results:
>
> <snip>
> Checking if your kit is complete...
> Looks good
> Using DBI 1.50 (for perl 5.008007 on i686-linux) installed in
> /usr/local/lib/perl5/site_perl/5.8.7/i686-linux/auto/DBI/
> Writing Makefile for DBD::mysql
> [root@Paarl DBD-mysql-3.0006]#
...
> Could you tell me what I'm doing wrong?
You forgot the "run the other steps manually" part. The "look" command
doesn't run "perl Makefile.PL; make; make test; make install" for you,
which is more or less the point of it. It's there so that you can pass
extra parameters to those commands when you need to, while still taking
advantage of the CPAN module's ability to identify the latest version,
check it against the installed version, choose a mirror site, etc.
sherm--
--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org
------------------------------
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 9301
***************************************