[27040] in Perl-Users-Digest
Perl-Users Digest, Issue: 8952 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Feb 14 14:05:36 2006
Date: Tue, 14 Feb 2006 11:05:05 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 14 Feb 2006 Volume: 10 Number: 8952
Today's topics:
Re: Accessing query time via DBI / DBD::MySQL <usenet05@drabble.me.uk>
Re: Best way for -h option for script to run perldoc on <uri@stemsystems.com>
Re: Recursive Directory Traversal <anon@nospam.net>
Re: Why can't JavaScript work when embeded in Perl CGI <noreply@gunnar.cc>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 14 Feb 2006 16:33:43 GMT
From: Graham Drabble <usenet05@drabble.me.uk>
Subject: Re: Accessing query time via DBI / DBD::MySQL
Message-Id: <Xns976AA87A9D7FFgrahamdrabblelineone@ID-77355.user.dfncis.de>
On 14 Feb 2006 Eric Schwartz <emschwar@fc.hp.com> wrote in
news:878xseard3.fsf@localhost.localdomain:
> Graham Drabble <usenet05@drabble.me.uk> writes:
>> When you run a query in MySQL the last row returned is of the
>> form:
>>
>> 4 rows in set (0.20 sec)
>
> That's not actually part of the rows that are returned; it's
> something the client prints out.
Thanks, I hadn't realised that.
>> How can I get access to that time when using DBI / DBD::MySQL ?
>
> perldoc -f time
I had considered doing that, I was simply hoping there was something
built in since the figure above goes to .01 of a second and to do that
with time calls either side of the statement requires Time::HiRes.
--
Graham Drabble
http://www.drabble.me.uk/
------------------------------
Date: Tue, 14 Feb 2006 12:20:34 -0500
From: Uri Guttman <uri@stemsystems.com>
To: Ed Hennig <edh@example.com>
Subject: Re: Best way for -h option for script to run perldoc on itself?
Message-Id: <x7u0b1g8m5.fsf@mail.sysarch.com>
>>>>> "EH" == Ed Hennig <edh@example.com> writes:
EH> What's the best or correct way to get a Perl program to handle the -h
EH> option (through getopts) by outputting its own perldoc documentation
EH> to the terminal?
EH> exec("perldoc " . $0) if ( $option{h} );
there are modules that can do that for you. search cpan for pod stuff.
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: Tue, 14 Feb 2006 11:19:40 -0500
From: "Sam" <anon@nospam.net>
Subject: Re: Recursive Directory Traversal
Message-Id: <dssvv0$n02$1@newslocal.mitre.org>
It looks like file::finder is what I want to do the job.
I'll give that a try.
Thanks everyone!
"Sam" <anon@nospam.net> wrote in message
news:dssu79$m24$2@newslocal.mitre.org...
> I'm trying to search a directory tree for a specific file, when that file
> is
> found I need the path returned.
>
> Does anyone know how to do this?
> I have been trying to use File::Find. It traverses the directory tree well
> enough, but it does not return anything.
>
> In this specific example, I can assume that the file name I'm looking for
> only occurs once.
>
> Does anyone know how to do this? It seems as though this should be a
> straightforward problem.
>
> Thanks
>
>
>
>
>
>
------------------------------
Date: Tue, 14 Feb 2006 19:19:15 +0100
From: Gunnar Hjalmarsson <noreply@gunnar.cc>
Subject: Re: Why can't JavaScript work when embeded in Perl CGI code?
Message-Id: <45elcvF6ddt6U1@individual.net>
Dave wrote:
>
> "500 Server Error...
In addition to the debugging methods already mentioned, a convenient way
to get more useful error messages written to screen is to add the line
use CGI::Carp 'fatalsToBrowser';
right below the shebang line.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
------------------------------
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 8952
***************************************