[11810] in Perl-Users-Digest
Perl-Users Digest, Issue: 5410 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Apr 18 11:07:21 1999
Date: Sun, 18 Apr 99 08:00:19 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 18 Apr 1999 Volume: 8 Number: 5410
Today's topics:
+g;r3#,OENGLISH? <cashtan@m3.is.net.tw>
Any software convert html code into perl code?? <austin95002887@yahoo.com>
Re: Books <ffchopin@worldnet.att.net>
Re: Books <puyrebel@prodigy.net>
Re: Books (Randal L. Schwartz)
Re: Books (Larry Rosler)
Re: Books <ffchopin@worldnet.att.net>
Re: Boolean keyword search in HTML files - boose.pl (1/ <gellyfish@gellyfish.com>
Re: Database module documentation & help... <rra@stanford.edu>
Re: Database module documentation & help... <not@gonna.tell>
Determining if a socket is open? ([sp-])
Re: Determining if a socket is open? <tchrist@mox.perl.com>
Help with Win32 installation needed! (Miroslaw J. Wiechowski)
Re: Help with Win32 installation needed! <carvdawg@patriot.net>
Re: How to write images to file <gellyfish@gellyfish.com>
Re: Is Javascript better than Perl? <enforce@spamkiller.com>
Re: Perl and MySQL error return code <gellyfish@gellyfish.com>
Re: perl cgi - want to run on local system <ffchopin@worldnet.att.net>
Re: Question about variables, and Perl in general <gellyfish@gellyfish.com>
Scripting language with LFN support? amacleod@altavista.net
Re: Wanted: some help for a perl script <gellyfish@gellyfish.com>
win95 mysql (Ronny Peter)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 18 Apr 1999 17:15:45 +0800
From: "perl" <cashtan@m3.is.net.tw>
Subject: +g;r3#,OENGLISH?
Message-Id: <7fc806$fce$1@news.is.net.tw>
&3(S&3$$$e0Q=W*:&a$h'r?
------------------------------
Date: Sun, 18 Apr 1999 17:02:58 +0800
From: "Kevin !;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;!;" <austin95002887@yahoo.com>
Subject: Any software convert html code into perl code??
Message-Id: <7fc6t0$5pv11@news1.cityu.edu.hk>
Any software convert html code into perl code??
HE and SHE - %L )M &o :
======================
http://start.cgirealm.com/heshe1/
------------------------------
Date: Sun, 18 Apr 1999 09:52:42 -0400
From: "Jason Simms" <ffchopin@worldnet.att.net>
Subject: Re: Books
Message-Id: <7fcorr$2sv$1@bgtnsc03.worldnet.att.net>
> Does anyone know of any good books that just show the different Perl
> functions and how they are used? Really, any recommened books at any
> different level would be appreciated.
Well, Learning Perl (i.e., the Camel Book) has a list of them all, with
explanantions. Of course, so does the included documentation that comes
free with Perl. Look at the manpage for perlfunc...
Jason Simms
------------------------------
Date: Sun, 18 Apr 1999 09:35:31 -0500
From: Ken Robbins <puyrebel@prodigy.net>
Subject: Re: Books
Message-Id: <3719EDB3.4FDF0280@prodigy.net>
Jason Simms wrote:
>
> [snip]
>
> Well, Learning Perl (i.e., the Camel Book) has a list of them all, with
Programming Perl is the Camel Book as shown at amazon.com. Is it
Learning Perl or Programming Perl that you are referring to?
> [snip]
Thanks again.
--
Ken Robbins
puyrebel <AT> prodigy <DOT> net
------------------------------
Date: 18 Apr 1999 07:38:43 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: Books
Message-Id: <m1hfqengcs.fsf@halfdome.holdit.com>
>>>>> "Jason" == Jason Simms <ffchopin@worldnet.att.net> writes:
>> Does anyone know of any good books that just show the different Perl
>> functions and how they are used? Really, any recommened books at any
>> different level would be appreciated.
Jason> Well, Learning Perl (i.e., the Camel Book) has a list of them all, with
Jason> explanantions. Of course, so does the included documentation that comes
Jason> free with Perl. Look at the manpage for perlfunc...
No, Learning Perl is the *llama* book, and the top-selling tutorial
intro to Perl. You want Programming Perl, the Camel Book, the
authoritative reference guide to Perl, co-authored by the creator of
Perl, one Mr. Larry Wall.
I think I know of which I speak. :)
print "Just another Perl *book* hacker,"
--
Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying
Email: <merlyn@stonehenge.com> Snail: (Call) PGP-Key: (finger merlyn@teleport.com)
Web: <A HREF="http://www.stonehenge.com/merlyn/">My Home Page!</A>
Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me
------------------------------
Date: Sun, 18 Apr 1999 07:33:09 -0700
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Books
Message-Id: <MPG.11838d00b5cadf219898d2@nntp.hpl.hp.com>
In article <7fcorr$2sv$1@bgtnsc03.worldnet.att.net> on Sun, 18 Apr 1999
09:52:42 -0400, Jason Simms <ffchopin@worldnet.att.net> says...
> > Does anyone know of any good books that just show the different Perl
> > functions and how they are used? Really, any recommened books at any
> > different level would be appreciated.
>
> Well, Learning Perl (i.e., the Camel Book) has a list of them all, with
> explanantions. Of course, so does the included documentation that comes
> free with Perl. Look at the manpage for perlfunc...
s/Learn/Programm/
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Sun, 18 Apr 1999 10:29:33 -0400
From: "Jason Simms" <ffchopin@worldnet.att.net>
Subject: Re: Books
Message-Id: <7fcr18$a6c$1@bgtnsc03.worldnet.att.net>
[courtesy copy sent to author]
> No, Learning Perl is the *llama* book, and the top-selling tutorial
> intro to Perl. You want Programming Perl, the Camel Book, the
> authoritative reference guide to Perl, co-authored by the creator of
> Perl, one Mr. Larry Wall.
>
> I think I know of which I speak. :)
Of course it is... I just stumbled out of bed and crashed onto my system
and began to write - should have had that first cup of coffee! Seriously,
though, no disrespect to the masters - an honest mistake!
Jason Simms
------------------------------
Date: 18 Apr 1999 11:25:19 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Boolean keyword search in HTML files - boose.pl (1/1)
Message-Id: <7fcfev$86i$1@gellyfish.btinternet.com>
On Fri, 16 Apr 1999 04:17:15 GMT Dmitry Epstein wrote:
> use strict;
>
> ## Perl 5 required to run this script
> require 5;
>
This version checking is redundant here as the program would have broken
already at the 'use' with versions earlier than 5. For myself I never
use it and I think it is probably only useful if you need some feature
that is present in some sub version.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 18 Apr 1999 04:22:14 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Database module documentation & help...
Message-Id: <ylbtgmmavt.fsf@windlord.stanford.edu>
Doug Crabtree <not@gonna.tell> writes:
> I have a simple database task that I need to do, one that even a text
> file would work for. The problem is that with around 1,000,000 entries,
> changing one may take too long. My first question is, which module is
> the best for simple database tasks.
I recommend DB_File for most purposes; the Berkeley db libraries, while
not standard on most operating systems, are generally fairly high quality
and a common thing for people to add. The Berkeley db format has the
advantage of a lack of arbitrary limits, reasonably good performance, and
most importantly for me, byte-order independence and a single file model
which makes it easier to move them around.
> My second question is, where can I find examples/documentation of the
> functions on these modules?
perldoc.
perldoc AnyDBM_File will give you a nice comparison between your options.
perldoc DB_File will give you usage examples for that one in particular.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Sun, 18 Apr 1999 09:56:46 -0400
From: "Doug Crabtree" <not@gonna.tell>
Subject: Re: Database module documentation & help...
Message-Id: <7fcoc4$7u2$1@samsara0.mindspring.com>
Russ Allbery <rra@stanford.edu> wrote in message
news:ylbtgmmavt.fsf@windlord.stanford.edu...
>
> perldoc.
>
> perldoc AnyDBM_File will give you a nice comparison between your options.
> perldoc DB_File will give you usage examples for that one in particular.
Thanks, I am quite new with CPAN and find it extremely hard to find anything
there. I finally found it, so I will start looking into it.
Thanks again!
Doug
------------------------------
Date: Sun, 18 Apr 1999 03:05:13 -0400
From: splice@videotron.ca ([sp-])
Subject: Determining if a socket is open?
Message-Id: <MPG.11834e348f383c399896a5@news.videotron.ca>
Hey everyone,
I was wondering if there was any way to determine if a socket handle is
currently open. That is, if I open a socket to an internet site, say on
port 110, is there any way to determine at some point in the program if
the socket is still open? I tried doing "if (defined(SOCKET)) { [close
it... blah blah] }" but wether the socket is open or closed, the block
still gets executed. I didn't find any info on this in books or FAQs.
Can anyone help?
thanks
[sp-]
------------------------------
Date: 18 Apr 1999 06:14:39 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Determining if a socket is open?
Message-Id: <3719ccaf@cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
In comp.lang.perl.misc, splice@videotron.ca ([sp-]) writes:
:I was wondering if there was any way to determine if a socket handle is
:currently open.
defined fileno SOCKET_HANDLE
But how is it you don't recall whether you opened it or not?
--tom
--
OK, enough hype.
--Larry Wall in the perl man page
------------------------------
Date: Sun, 18 Apr 1999 15:19:00 +0200
From: mjw@bahnhof.se (Miroslaw J. Wiechowski)
Subject: Help with Win32 installation needed!
Message-Id: <MPG.1183fa31baacd0ba98968d@news.supernews.com>
Hi,
I am unable to install Perl for Windows (ActiveState Build 5.15).
The installation program will stop at approximately 95% and
freeze. I had exactly the same problem with the previous builds.
Is there anybody who could simply pack his/hers Perl directory
tree with all files into a ZIP-archive and mail it to me? Or,
perhaps, to place the archive somewhere on the web?
What changes does the Perl installation program make in the
Win95 registry?
Thank you in advance
MJ Wiechowk
------------------------------
Date: Sun, 18 Apr 1999 10:09:03 +0100
From: Marquis de Carvdawg <carvdawg@patriot.net>
Subject: Re: Help with Win32 installation needed!
Message-Id: <3719A12F.EA9E4418@patriot.net>
Are you running a virus scanner? If so, try turning it off before
installing...
Miroslaw J. Wiechowski wrote:
> Hi,
>
> I am unable to install Perl for Windows (ActiveState Build 5.15).
> The installation program will stop at approximately 95% and
> freeze. I had exactly the same problem with the previous builds.
>
> Is there anybody who could simply pack his/hers Perl directory
> tree with all files into a ZIP-archive and mail it to me? Or,
> perhaps, to place the archive somewhere on the web?
>
> What changes does the Perl installation program make in the
> Win95 registry?
>
> Thank you in advance
> MJ Wiechowk
------------------------------
Date: 17 Apr 1999 17:18:01 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: How to write images to file
Message-Id: <7fafo9$7tj$1@gellyfish.btinternet.com>
On Fri, 16 Apr 1999 09:58:11 -0700 Alycia Dasmann wrote:
> I am working with a SQL Server 7 database storing images to be displayed
> eventually on a website. The field is an image datatype.
> I want to be able to open a recordset and write the image to a temporary
> file and then load it into the web page. The problem I'm having is the file
> seems to be twice the size as it should be and appears to be spaced.
>
Are you sure that this is what s really going on ? It might be that the
size of the data as stored in the database is smaller than that as a
physical file because of some filesystem thing, block sizes etc. The proof
of the pudding I suppose is if the file is actually corrupt when read into
some application that should be able to read.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Apr 1999 22:09:40 +0930
From: "enforcer" <enforce@spamkiller.com>
Subject: Re: Is Javascript better than Perl?
Message-Id: <7fcgd1$ujr$1@reader1.reader.news.ozemail.net>
ouch! hehe....
David Turley wrote in message <370f1e87.15450070@news.erols.com>...
>On 9 Apr 1999 15:21:09 GMT, macrosheep@aol.com (Macrosheep) wrote:
>
>[Courtesy copy to Macrosheep.]
>
>>
>>I'm doing a project for an Independent Study at WPI. I was wondering if
anyone
>>had feedback concerning Java's pluses and minuses vs. Perl as a script
>>language?
>
>So which is it? In the subject you write JavaScript, but then you ask
>about Java. All three are totally different, with different purposes.
>
>Java's pluses and minuses have nothing to do with Perl as a scripting
>language.
>
>
>--
>David Turley
>dturley@pobox.com
>http://www.binary.net/dturley/
------------------------------
Date: 17 Apr 1999 17:14:01 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl and MySQL error return code
Message-Id: <7fafgp$7tg$1@gellyfish.btinternet.com>
On Fri, 16 Apr 1999 10:44:46 -0500 John wrote:
> Does anyone know how to get a numeric error return code from MySQL using
> Perl?
> When I used to work with COBOL I could get an error return code from the DB2
> database. For example if a table was locked I would get a -911 error return
> code. I would like to be able to do the same in my Perl programs with MySQL
> so that I can properly act on an error. If anyone has some code on how to do
> this I would much appreciate it!
>
If you are using a DBD driver then a 'do', 'prepare' or 'execute' should
give you a return value which should correspond to those described in
the database documentation.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Apr 1999 10:40:42 -0400
From: "Jason Simms" <ffchopin@worldnet.att.net>
Subject: Re: perl cgi - want to run on local system
Message-Id: <7fcrm2$cg7$1@bgtnsc03.worldnet.att.net>
> I am a web developer and am starting to dable in the programming side of
> websites. I don't have an ISP that supports cgi on their server, is there
> any way that I can run cgi scripts on my computer so that I can test cgi
> scripts without uploading them to a cgi enabled server? I have download
and
> installed perl, but I am guessing that I need some way for my computer to
> take a local http request and run the perl engine. Any help would be
greatly
> appreciated.
What type of system do you have? Win32? If that is the case (I'll go on
the guess it is), you need to install a Web server of some sort. IIS, if
you are running NT, or perhaps Personal Web Server for 9x. Or, maybe even
Apache for Win32 (http://www.apache.org). Once this is up and running, you
need to have Perl be associated with your cgi files. Usually, the Perl
setup program will do this for you - if not, see your web server's
instructions. Check out some instructions in the Official Guide to
Programming with CGI.pm, which will help get you started on your local
machine. You will find, with CGI.pm, that you can actually debug from the
command line without the use of a web server, though I usually find that a
server makes things easier. One more piece of advice, though: any further
questions on CGI would best be taken to comp.infosystems.www.authoring.cgi,
and all questions related to web servers should be taken to the appropriate
server newsgroup.
Jason Simms
------------------------------
Date: 17 Apr 1999 17:22:58 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Question about variables, and Perl in general
Message-Id: <7fag1i$7tm$1@gellyfish.btinternet.com>
On 17 Apr 1999 11:17:27 -0000 Jonathan Stowe wrote:
>
> the variable with the zero file or perhaps use the magical autoincrement:
>
s/file/fill/
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Apr 1999 10:24:39 GMT
From: amacleod@altavista.net
Subject: Scripting language with LFN support?
Message-Id: <7fcbt4$rca$1@nnrp1.dejanews.com>
My question is quite simple:
Is there a scripting language in NT (akin to shell, batch, perl etc.) that
supports long file names?
NT's DOS CLI only supports long file names for built in commands (cd, md, rd,
copy, ren, dir, type...) which makes it worthless.
I'm hoping to write platform independent install scripts that can manage files
on both NT and UNIXwith minimal change.
All comments gratefully received...
Andrew.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 17 Apr 1999 17:03:50 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Wanted: some help for a perl script
Message-Id: <7faetm$7t1$1@gellyfish.btinternet.com>
On Sat, 17 Apr 1999 14:34:45 GMT Marc Herms wrote:
> Because I don`t want to bother the company where I
> bougth the script, I`d like to have some help from one of you.
>
If you bought the script then you should expect some support - I dont
understand why you dont want to bother them. We get a lot of posts
here wanting help with *free* programs which is irritating but nonetheless
unsurprising however this is just incomprehensible to me.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Apr 1999 11:27:05 +0200
From: ronnypeter@t-online.de (Ronny Peter)
Subject: win95 mysql
Message-Id: <7fc92l$688$2@news03.btx.dtag.de>
Hi!
i have installed mySQL for windows 95. It works great.
if i compile the module msql-mysql-modules-1.2017 a error message appear.
And it finaly leads to a abort.
with visual c++ 5.0:
NMAKE all -nologo NMAKE all -nologo
link -out:..\blib\arch\auto\DBD\mysql\mysql.dll -dll -nologo -nodefaultlib -
release -machine:x86 dbdimp.obj mysql.obj C:\Perl\lib\CORE\perlCAPI.lib
C:\mysql\lib\debug\mysqlclient.lib C:\Perl\lib\core\PerlCRT.lib
libc.lib -def:mysql.def
mysqlclient.lib(my_winthread.obj) : error LNK2005: _pthread_cond_init
bereits in dbdimp.obj definiert
mysqlclient.lib(my_winthread.obj) : warning LNK4006: _pthread_cond_init
bereits in dbdimp.obj definiert; zweite Definition wird ignoriert
Bibliothek ..\blib\arch\auto\DBD\mysql\mysql.lib und Objekt
..\blib\arch\auto\DBD\mysql\mysql.exp wird erstellt
perlCAPI.lib(perlCAPI.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __imp__InitializeCriticalSection@4
mysqlclient.lib(dbug.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
__imp__InitializeCriticalSection@4
mysqlclient.lib(my_pthread.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __imp__InitializeCriticalSection@4
perlCAPI.lib(perlCAPI.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __imp__DeleteCriticalSection@4
mysqlclient.lib(my_init.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __imp__DeleteCriticalSection@4
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol __imp__MessageBoxA@16
mysqlclient.lib(libmysql.obj) : error LNK2001: Nichtaufgeloestes externes
Symbol _WSAGetLastError@0
mysqlclient.lib(net.obj) : error LNK2001: Nichtaufgeloestes externes Symbol
_WSAGetLastError@0
how can I solve the problem?
thank you!
R. Peter
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
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.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
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 V8 Issue 5410
**************************************